|
NAMEVOP_LOOKUP —
lookup a component of a pathname
SYNOPSIS#include <sys/param.h>
#include <sys/vnode.h>
#include <sys/namei.h>
int
DESCRIPTIONThis entry point looks up a single pathname component in a given directory.Its arguments are:
LOCKSThe directory dvp should be locked on entry and exit, regardless of error condition. If an entry is found in the directory, it will be returned locked.RETURN VALUESZero is returned with *vpp set to the locked vnode of the file if the component is found. If the component being searched for is ".", then the vnode just has an extra reference added to it with vref(9). The caller must take care to release the locks appropriately in this case.If the component is not found and the operation is
ERRORS
SEE ALSOvnode(9), VOP_ACCESS(9), VOP_CREATE(9), VOP_MKDIR(9), VOP_MKNOD(9), VOP_RENAME(9), VOP_SYMLINK(9)HISTORYThe functionVOP_LOOKUP appeared in
4.3BSD.
AUTHORSThis manual page was written by Doug Rabson, with some text from comments in ufs_lookup.c.
Visit the GSP FreeBSD Man Page Interface. |