vfs_busy man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

VFS_BUSY(9)		 BSD Kernel Developer's Manual		   VFS_BUSY(9)

NAME
     vfs_busy — marks a mount point as busy

SYNOPSIS
     #include <sys/param.h>
     #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_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.

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.

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

AUTHORS
     This manual page was written by Chad David ⟨davidc@acns.ab.ca⟩.

BSD				 June 14, 2010				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net