aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/VOP_INACTIVE.9
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-09-24 07:07:02 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-09-24 07:07:02 +0000
commitfe11eb74af3d5aef6ae4ba8e61c46ca7d5ede5b5 (patch)
tree8968a33e3fe741198f7244eb37427c82a71b19d0 /share/man/man9/VOP_INACTIVE.9
parent011afabb7a72351d32fad6af7bfc4ace40566301 (diff)
downloadsrc-fe11eb74af3d5aef6ae4ba8e61c46ca7d5ede5b5.tar.gz
src-fe11eb74af3d5aef6ae4ba8e61c46ca7d5ede5b5.zip
Update errors in documentation for various VOP_ calls. Specifically,
describe the correct locking state expected on entry and return.
Notes
Notes: svn path=/head/; revision=51618
Diffstat (limited to 'share/man/man9/VOP_INACTIVE.9')
-rw-r--r--share/man/man9/VOP_INACTIVE.99
1 files changed, 9 insertions, 0 deletions
diff --git a/share/man/man9/VOP_INACTIVE.9 b/share/man/man9/VOP_INACTIVE.9
index 95d21db33d33..e9546ef2ff81 100644
--- a/share/man/man9/VOP_INACTIVE.9
+++ b/share/man/man9/VOP_INACTIVE.9
@@ -59,6 +59,14 @@ It can be used to reclaim space for 'open but deleted' files.
is called when a vnode is being reused for a different filesystem.
Any filesystem specific resources associated with the vnode should be
freed.
+.Sh LOCKS
+.Pp
+For VOP_INACTIVE, the vp will be locked on entry. Your VOP_INACTIVE code
+must unlock the vp prior to returning.
+.Pp
+For VOP_RECLAIM, the vp will not be locked on entry and should be left
+unlocked on return.
+.Pp
.Sh PSEUDOCODE
.Bd -literal
int
@@ -70,6 +78,7 @@ vop_inactive(struct vnode *vp)
*/
...;
}
+ VOP_UNLOCK(vp, 0, p);
return 0;
}