*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: vfs_busy | Section: 9 | Source: OpenBSD | File: vfs_busy.9
VFS_BUSY(9) FreeBSD Kernel Developer's Manual VFS_BUSY(9) NAME vfs_busy, vfs_isbusy, vfs_unbusy - VFS locking API SYNOPSIS #include <sys/mount.h> int vfs_busy(struct mount *mp, int flags); int vfs_isbusy(struct mount *mp); void vfs_unbusy(struct mount *mp); DESCRIPTION The vfs_busy API is used to lock mount points to ensure consistent access. A read lock can be shared between multiple processes, while a write lock is exclusive. Normally a write lock is only acquired when unmounting. The vfs_busy() function locks the mount point pointed to by mp, where flags describes the type of lock to acquire and whether or not to wait for a conflicting lock to be released. The following flags are available: VB_READ Acquire a read lock. VB_WRITE Acquire a write lock. VB_NOWAIT Return immediately; do not wait for the conflicting lock to be released. VB_WAIT Wait for the conflicting lock to be released. VB_DUPOK Prevent witness(4) from logging when this thread already has a mount point locked. If a conflicting lock was encountered, vfs_busy() returns an error. The vfs_isbusy() function checks whether the given mount point is locked. vfs_unbusy() unlocks the given mount point. The vfs_busy API is implemented in the file sys/kern/vfs_subr.c. SEE ALSO witness(4), rwlock(9), vfs(9) FreeBSD 14.1-RELEASE-p8 June 4, 2018 FreeBSD 14.1-RELEASE-p8

Navigation Options