Copyright (C) 2001 Chad David <email@example.com>. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice(s), this list of conditions and the following disclaimer as the first lines of this file unmodified other than the possible addition of one or more copyright notices. 2. Redistributions in binary for...
NAMEvflush - flush vnodes for a mount point
SYNOPSISIn sys/param.h In sys/vnode.h Ft int Fn vflush struct mount *mp int rootrefs int flags struct thread *td
DESCRIPTIONThe Fn vflush function removes any vnodes in the vnode table that belong to the given Vt mount structure.
Its arguments are:
- Fa mp
- The mount point whose vnodes should be removed.
- Fa rootrefs
- The number of references expected on the root vnode. vrele(9) will be invoked on the root vnode Fa rootrefs times.
- Fa flags
The flags indicating how vnodes should be handled.
- If set, busy vnodes will be forcibly closed.
- If set, vnodes with the VV_SYSTEM flag set will be skipped.
- If set, only regular files currently opened for writing will be removed.
- Fa td
- The calling thread.