*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> vfs_busy (9)              
Title
Content
Arch
Section
 

VFS_BUSY(9)

Contents


NAME    [Toc]    [Back]

     vfs_busy -- marks a mount point as busy

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/mount.h>

     int
     vfs_busy(struct mount *mp, int flags, struct mtx *interlkp,
	 struct thread *td);

DESCRIPTION    [Toc]    [Back]

     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.

	       LK_NOWAIT  do not sleep if MNTK_UNMOUNT is set.

     interlkp  The interlock mutex for mp->mount_lock.	If there is any chance
	       the mount point is being unmounted and LK_NOWAIT is not set
	       then interlock must be valid locked mutex.

     td        The thread responsible for this call.

LOCKS    [Toc]    [Back]

     If interlkp is a valid pointer it must be locked on entry, and it will
     not be unlocked even in the case of an error.

RETURN VALUES    [Toc]    [Back]

     A 0 value is returned on success.	If the mount point is being unmounted
     ENOENT will always be returned.

ERRORS    [Toc]    [Back]

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

AUTHORS    [Toc]    [Back]

     This manual page was written by Chad David <[email protected]>.


FreeBSD 5.2.1			 July 8, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
vfs_unbusy FreeBSD unbusy a mount point
vflush FreeBSD flush vnodes for a mount point
vflush OpenBSD flush vnodes for a mount point
vfs_getvfs FreeBSD returns a mount point given its file system identifier
nwmount IRIX create a mount point for accessing NetWare servers
diffmk Tru64 Marks differences between files
DELAY FreeBSD busy loop for an interval
VkBusyDialog IRIX Manage and display busy dialogs
vm_page_sleep_busy FreeBSD wait for a busy page to become unbusy
pthread_detach Tru64 Marks a thread object for deletion
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service