| VFS_BUSY(9) | Kernel Developer's Manual | VFS_BUSY(9) |
vfs_busy — marks a
mount point as busy
#include
<sys/param.h>
#include <sys/mount.h>
int
vfs_busy(struct
mount *mp, int
flags);
The
vfs_busy()
function marks a mount point as busy by incrementing the reference count of
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
MBF_NOWAIT flag is
not set.
Its arguments are:
vfs_busy()
should act.
MBF_NOWAITMNTK_UNMOUNT is set.MBF_MNTLSTLOCKA 0 value is returned on success. If the mount point is being
unmounted and MBF_NOWAIT flag is specified ENOENT
will be returned.
ENOENT]MNTK_UNMOUNT
is set).This manual page was written by Chad David <davidc@acns.ab.ca>.
| February 11, 2013 | Debian |