*** 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: insmntque1 | Section: 9 | Source: FreeBSD | File: insmntque1.9.gz
INSMNTQUE(9) FreeBSD Kernel Developer's Manual INSMNTQUE(9) NAME insmntque, insmntque1 - associate a vnode with a mount SYNOPSIS #include <sys/param.h> #include <sys/vnode.h> int insmntque(struct vnode *vp, struct mount *mp); int insmntque1(struct vnode *vp, struct mount *mp); DESCRIPTION The insmntque() function associates a vnode with a mount. This includes updating v_mount for the vnode, and inserting the vnode into the mount's vnode list. The indirect mount reference count, maintained as the count of the vnodes owned by it, is incremented for each vnode added to the mount, and that reference is decremented by vgone(9). The mount's interlock is held while the vnode is inserted. The vnode must be exclusively locked. On failure, insmntque() resets vnode' operation vector to the vector of deadfs(9), clears v_data, and then calls vgone(9) and vput(9). If more elaborated cleanup after insmntque() failure is needed, the insmntque1() function may be used instead. It does not do any cleanup following a failure, leaving all the work to the caller. In particular, the operation vector v_op and v_data fields of the vnode are kept intact. RETURN VALUES The insmntque() function will always return 0, unless the file system is currently being unmounted in which case it may return EBUSY. Also, insmntque() may be forced to insert the vnode into the mount's vnode list by setting the VV_FORCEINSMQ flag in the vnode v_flag, even if the file system is being unmounted. SEE ALSO vgone(9) AUTHORS This manual page was written by Chad David <[email protected]>. FreeBSD 14.1-RELEASE-p8 January 29, 2022 FreeBSD 14.1-RELEASE-p8

Navigation Options