logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vflush — flush vnodes for a mount point

Authors

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

Debian                                          November 21, 2001                                      VFLUSH(9)

Description

       The vflush() function removes any vnodes in the vnode table that belong to the given mount structure.

       Its arguments are:

       mp        The mount point whose vnodes should be removed.

       rootrefs  The  number  of  references  expected  on the root vnode.  vrele(9) will be invoked on the root
                 vnode rootrefs times.

       flags     The flags indicating how vnodes should be handled.

                 FORCECLOSE  If set, busy vnodes will be forcibly closed.

                 SKIPSYSTEM  If set, vnodes with the VV_SYSTEM flag set will be skipped.

                 WRITECLOSE  If set, only regular files currently opened for writing will be removed.

       td        The calling thread.

Name

       vflush — flush vnodes for a mount point

Return Values

       A value of 0 is returned if the flush is successful; otherwise, EBUSY will be returned.

See Also

vgone(9), vrele(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>intvflush(structmount*mp, introotrefs, intflags, structthread*td);

See Also