vflush.9 (ce916253e4d79b9e8aec19da873e5115e8aa7959) | vflush.9 (2164257702740979d6ffebaba02a3fd778aea2c3) |
---|---|
1.\" 2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 20 unchanged lines hidden (view full) --- 29.Dd November 21, 2001 30.Dt VFLUSH 9 31.Os 32.Sh NAME 33.Nm vflush 34.Nd "flush vnodes for a mount point" 35.Sh SYNOPSIS 36.In sys/param.h | 1.\" 2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 20 unchanged lines hidden (view full) --- 29.Dd November 21, 2001 30.Dt VFLUSH 9 31.Os 32.Sh NAME 33.Nm vflush 34.Nd "flush vnodes for a mount point" 35.Sh SYNOPSIS 36.In sys/param.h |
37.In sys/vnode.h | 37.In sys/mount.h |
38.Ft int | 38.Ft int |
39.Fn vflush "struct mount *mp" "int rootrefs" "int flags" "struct thread *td" | 39.Fn vflush "struct mount *mp" "int rootrefs" "int flags" |
40.Sh DESCRIPTION 41The 42.Fn vflush | 40.Sh DESCRIPTION 41The 42.Fn vflush |
43function removes any vnodes in the vnode table that belong to the given 44.Vt mount | 43function removes any vnodes in the vnode table that belong to the given mount |
45structure. 46.Pp 47Its arguments are: 48.Bl -tag -width ".Fa rootrefs" 49.It Fa mp 50The mount point whose vnodes should be removed. 51.It Fa rootrefs 52The number of references expected on the root vnode. | 44structure. 45.Pp 46Its arguments are: 47.Bl -tag -width ".Fa rootrefs" 48.It Fa mp 49The mount point whose vnodes should be removed. 50.It Fa rootrefs 51The number of references expected on the root vnode. |
53.Xr vrele 9 | 52.Fn vrele |
54will be invoked on the root vnode 55.Fa rootrefs 56times. 57.It Fa flags 58The flags indicating how vnodes should be handled. 59.Bl -tag -width ".Dv WRITECLOSE" 60.It Dv FORCECLOSE | 53will be invoked on the root vnode 54.Fa rootrefs 55times. 56.It Fa flags 57The flags indicating how vnodes should be handled. 58.Bl -tag -width ".Dv WRITECLOSE" 59.It Dv FORCECLOSE |
61If set, busy vnodes will be forcibly closed. | 60If set busy vnodes will be forcibly closed. |
62.It Dv SKIPSYSTEM | 61.It Dv SKIPSYSTEM |
63If set, vnodes with the 64.Dv VV_SYSTEM 65flag set will be skipped. | 62If set vnodes with the VSYSTEM flag set will be skipped. |
66.It Dv WRITECLOSE | 63.It Dv WRITECLOSE |
67If set, only regular files currently opened for writing will be removed. | 64If set only regular files currently opened for writing will be removed. |
68.El | 65.El |
69.It Fa td 70The calling thread. | |
71.El 72.Sh RETURN VALUES 73A value of 0 is returned if the flush is successful; otherwise, | 66.El 67.Sh RETURN VALUES 68A value of 0 is returned if the flush is successful; otherwise, |
74.Er EBUSY | 69.Dv EBUSY |
75will be returned. 76.Sh SEE ALSO 77.Xr vgone 9 , | 70will be returned. 71.Sh SEE ALSO 72.Xr vgone 9 , |
78.Xr vgonel 9 , 79.Xr vrele 9 | 73.Xr vgonel 9 |
80.Sh AUTHORS | 74.Sh AUTHORS |
81This manual page was written by | 75This man page was written by |
82.An Chad David Aq davidc@acns.ab.ca . | 76.An Chad David Aq davidc@acns.ab.ca . |