MirOS Manual: vclean(9)

VCLEAN(9)                     BSD Kernel Manual                      VCLEAN(9)


     vclean - disassociate the underlying file system from a vnode


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

     vclean(struct vnode *vp, int flags, struct proc *p);


     The vclean() function clears any VM and buffer data associated with the
     vnode vp and reclaims it from the underlying file system.

     Its arguments are:

     vp         The vnode to be cleaned.

     flags      The flags indicating how the vnode should be handled.

                DOCLOSE      If this flag is set, vclean() will call
                             vinvalbuf(9) on the vnode. If the vnode is ac-
                             tive, it will be closed and inactivated in the
                             underlying file system.

     p          The process responsible for this call.

     The vnode interlock is held on entry. On exit, the v_tag field of the
     vnode will be set to VT_NON, and if the vnode was active, it will be
     placed on the vnode free list.


     vinvalbuf(9), vnode(9)


     This man page was originally written for OpenBSD.

MirOS BSD #10-current         February 18, 2002                              1

Generated on 2017-04-03 16:26:17 by $MirOS: src/scripts/roff2htm,v 1.88 2017/01/29 00:51:06 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2017 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.