Contents

vnode_lookup

Convert a path into a vnode.

Declaration

errno_t vnode_lookup(const char *path, int flags, vnode_t *vpp, vfs_context_t ctx);

Parameters

  • path:

    Path to look up.

  • flags:

    VNODE_LOOKUP_NOFOLLOW: do not follow symbolic links. VNODE_LOOKUP_NOCROSSMOUNT: do not cross mount points.

Return Value

Results 0 for success or an error code.

Discussion

This routine is a thin wrapper around xnu-internal lookup routines; if successful, it returns with an iocount held on the resulting vnode which must be dropped with vnode_put().

See Also

vnode