VFS_ROOT — return the root vnode of a file system
Contents
Description
Return a locked vnode for the root directory of the file system.
Its arguments are:
mp The file system.
flags The lock type. Could be LK_EXCLUSIVE or LK_SHARED. File system is free to ignore the flags
argument and instead acquire an exclusive lock.
vpp Return parameter for the root vnode.
Name
VFS_ROOT — return the root vnode of a file system
See Also
VFS(9), vnode(9)
Synopsis
#include<sys/param.h>#include<sys/mount.h>#include<sys/vnode.h>intVFS_ROOT(structmount*mp, intflags, structvnode**vpp);
