|
NAMEvinvalbuf —
flushes and invalidates all buffers associated with a
vnode
SYNOPSIS#include <sys/param.h>
#include <sys/vnode.h>
int
DESCRIPTIONThevinvalbuf () function invalidates all of the buffers
associated with the given vnode. This includes buffers on the clean list and
the dirty list. If the V_SAVE flag is specified then
the buffers on the dirty list are synced prior to being released. If there is
a VM Object associated with the vnode, it is removed.
Its arguments are:
LOCKSThe vnode is assumed to be locked prior to the call and remains locked upon return.Giant must be held by prior to the call and remains locked upon return. RETURN VALUESA 0 value is returned on success.PSEUDOCODEvn_lock(devvp, LK_EXCLUSIVE | LK_RETRY); error = vinvalbuf(devvp, V_SAVE, cred, 0, 0); VOP_UNLOCK(devvp, 0); if (error) return (error); ERRORS
SEE ALSOtsleep(9), VOP_FSYNC(9)AUTHORSThis manual page was written by Chad David <davidc@acns.ab.ca>.
Visit the GSP FreeBSD Man Page Interface. |