*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> vclean (9)              
Title
Content
Arch
Section
 

VCLEAN(9)

Contents


NAME    [Toc]    [Back]

     vclean - disassociate the underlying file system from a  vnode

SYNOPSIS    [Toc]    [Back]

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

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

DESCRIPTION    [Toc]    [Back]

     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 active,
  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.

SEE ALSO    [Toc]    [Back]

      
      
     vinvalbuf(9), vnode(9)

HISTORY    [Toc]    [Back]

     This man page was originally written for OpenBSD.

OpenBSD     3.6                        February     18,      2002
[ Back ]
 Similar pages
Name OS Title
VOP_INACTIVE FreeBSD reclaim file system resources for a vnode
VOP_RECLAIM FreeBSD reclaim file system resources for a vnode
VFS_ROOT FreeBSD return the root vnode of a file system
vfs_mountedon FreeBSD check if the vnode belongs to a mounted file system
gss_indicate_mechs HP-UX allow an application to determine which underlying security mechanisms are available
volclonedg Tru64 Creates a copy of an LSM disk group whose underlying disks have been cloned via hardware.
vnconfig OpenBSD configure vnode disks for file swapping or pseudo file systems
mount_nullfs FreeBSD mount a loopback file system sub-tree; demonstrate the use of a null file system layer
vxfsconvert HP-UX convert a file system to a vxfs file system or upgrade a VxFS disk layout version.
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service