logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vfs_busy — marks a mount point as busy

Authors

       This manual page was written by Chad David <davidc@acns.ab.ca>.

Debian                                          February 11, 2013                                    VFS_BUSY(9)

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_UNMOUNT flag is set in mp->mnt_kern_flag and the
       MBF_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.

Errors

       [ENOENT]           The mount point is being unmounted (MNTK_UNMOUNT is set).

Name

       vfs_busy — marks a mount point as busy

Return Values

       A 0 value is returned on success.  If the mount point is being unmounted and MBF_NOWAIT flag is specified
       ENOENT will be returned.

See Also

vfs_unbusy(9)

Synopsis

#include<sys/param.h>#include<sys/mount.h>intvfs_busy(structmount*mp, intflags);

See Also