Contents

vnode_getname

Get the name of a vnode from the VFS namecache.

Declaration

const char * vnode_getname(vnode_t vp);

Parameters

  • vp:

    The vnode whose name to grab.

Return Value

The name, or NULL if unavailable.

Discussion

Not all vnodes have names, and vnode names can change (notably, hardlinks). Use this routine at your own risk. The string is returned with a refcount incremented in the cache; callers must call vnode_putname() to release that reference.

See Also

vnode