table of contents
|VFS_BUSY(9)||Kernel Developer's Manual||VFS_BUSY(9)|
NAME¶vfs_busy — marks a mount point as busy
#include <sys/mount.h> int
vfs_busy(struct mount *mp, int flags);
DESCRIPTION¶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_UNMOUNTflag is set in mp->mnt_kern_flag and the
MBF_NOWAITflag is not set. Its arguments are:
- The mount point to busy.
- Flags controlling how vfs_busy() should
- do not sleep if
- drop the mountlist_mtx in the critical path.
RETURN VALUES¶A 0 value is returned on success. If the mount point is being unmounted and MBF_NOWAIT flag is specified
ENOENTwill be returned.
- The mount point is being unmounted
AUTHORS¶This manual page was written by Chad David ⟨firstname.lastname@example.org⟩.
|June 14, 2010||Debian|