GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
INSMNTQUE(9) FreeBSD Kernel Developer's Manual INSMNTQUE(9)

insmntque, insmntque1associate a vnode with a mount

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

int
insmntque(struct vnode *vp, struct mount *mp);

int
insmntque1(struct vnode *vp, struct mount *mp);

The () 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, () 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 () 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.

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.

vgone(9)

This manual page was written by Chad David <davidc@acns.ab.ca>.

January 29, 2022 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.