|
NAMEinsmntque , insmntque1 —
associate a vnode with a mount
SYNOPSIS#include <sys/param.h>
#include <sys/vnode.h>
int
int
DESCRIPTIONTheinsmntque () 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 mount reference count 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. For MP-safe file systems, the vnode must be exclusively locked. On failure, RETURN VALUESTheinsmntque () 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 ALSOvgone(9)AUTHORSThis manual page was written by Chad David <davidc@acns.ab.ca>.
Visit the GSP FreeBSD Man Page Interface. |