vref.9 (7f3dea244c40159a41ab22da77a434d7c5b5e85a) vref.9 (218d216271ae1af4cc01c1b1356adecc2f9bc490)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1996 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 29 unchanged lines hidden (view full) ---

38.Fd #include <sys/param.h>
39.Fd #include <sys/vnode.h>
40.Ft void
41.Fn vref "struct vnode *vp"
42.Sh DESCRIPTION
43Increment the
44.Dv v_usecount
45field of a vnode.
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1996 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 29 unchanged lines hidden (view full) ---

38.Fd #include <sys/param.h>
39.Fd #include <sys/vnode.h>
40.Ft void
41.Fn vref "struct vnode *vp"
42.Sh DESCRIPTION
43Increment the
44.Dv v_usecount
45field of a vnode.
46.Bl -tag -width vp
46.Bl -tag -width 2n
47.It Ar vp
48the vnode to increment
49.El
50.Pp
51Each vnode maintains a reference count of how many parts of the system
52are using the vnode. This allows the system to detect when a vnode is
53no longer being used and can be safely recycled for a different file.
54.Pp

--- 12 unchanged lines hidden ---
47.It Ar vp
48the vnode to increment
49.El
50.Pp
51Each vnode maintains a reference count of how many parts of the system
52are using the vnode. This allows the system to detect when a vnode is
53no longer being used and can be safely recycled for a different file.
54.Pp

--- 12 unchanged lines hidden ---