Provided by: freebsd-manpages_8.0-1_all
vfs_busy - marks a mount point as busy
vfs_busy(struct mount *mp, int flags);
The vfs_busy() function marks a mount point as busy. The purpose of this
function is to synchronize access to a mount point. It also delays
unmounting by sleeping on mp if the MNTK_UNMOUNT flag is set in
mp->mnt_kern_flag and the LK_NOWAIT flag is not set.
Its arguments are:
mp The mount point to busy.
flags Flags controlling how vfs_busy() should act.
MBF_NOWAIT do not sleep if MNTK_UNMOUNT is set.
MBF_MNTLSTLOCK drop the mountlist_mtx in the critical path.
A 0 value is returned on success. If the mount point is being unmounted
ENOENT will always be returned.
[ENOENT] The mount point is being unmounted (MNTK_UNMOUNT is
This manual page was written by Chad David 〈email@example.com〉.