Query: vfs_unlock_giant
OS: debian
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VFS_LOCK_GIANT(9) BSD Kernel Developer's Manual VFS_LOCK_GIANT(9)NAMEVFS_LOCK_GIANT, VFS_UNLOCK_GIANT -- conditionally lock and unlock Giant around entry into VFSSYNOPSIS#include <sys/param.h> #include <sys/mount.h> #include <sys/vnode.h> int VFS_LOCK_GIANT(struct mount *mp); void VFS_UNLOCK_GIANT(int vfslocked);DESCRIPTIONVFS_LOCK_GIANT() will conditionally acquire the Giant lock if the file system referenced by mp is marked as MPSAFE or not, returning a flag indicating whether Giant was set, which may later be passed to VFS_UNLOCK_GIANT(). The value of mp will typically be derived from the mount pointer in a vnode on which a VFS operation will be performed. VFS_UNLOCK_GIANT() conditionally releases the Giant lock if the passed vfslocked argument is non-zero. It is expected that the argument will be derived from the return values of VFS_LOCK_GIANT() or NDHASGIANT(9).RETURN VALUESVFS_LOCK_GIANT() returns a boolean indicating whether or not Giant was acquired.SEE ALSOmutex(9), NDHASGIANT(9), vnode(9)AUTHORSMPSAFE VFS support for FreeBSD was implemented by Jeff Roberson. This manual page was written by Robert Watson.BUGSNon-MPSAFE file systems exist, requiring callers conditional locking and unlocking of Giant.BSDSeptember 21, 2005 BSD
Related Man Pages |
---|
vput(9) - freebsd |
namei(9) - debian |
vunref(9) - debian |
vunref(9) - freebsd |
vrele(9) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Mounting Dir's to VFS table |
using sed to conditionally extract stanzas of a file based on a search string |
One Small Step for Statistical Classification, One Giant Leap for CEP |