diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-11-01 20:34:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-11-01 20:34:11 +0000 |
commit | 46c89706e243f21bc846a7e496ab5ce4db1768e8 (patch) | |
tree | e102318d5e077ab6ae6ec4102c459808f99728e7 /share/man/man9 | |
parent | 55ec2536ce6c0d635a791013b3a21bd430cfb4c9 (diff) |
change vrele() to return an int. if it returns 0, it can gaurantee that
it did not sleep. this is used to avoid checkdirs() to avoid having
to restart the allproc walk every time through
idea from tedu, ok thib pedro
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/vrele.9 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/share/man/man9/vrele.9 b/share/man/man9/vrele.9 index 78c81a90089..8aaae0cc7c8 100644 --- a/share/man/man9/vrele.9 +++ b/share/man/man9/vrele.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vrele.9,v 1.5 2007/05/31 19:20:01 jmc Exp $ +.\" $OpenBSD: vrele.9,v 1.6 2008/11/01 20:34:10 deraadt Exp $ .\" -*- nroff -*- .\" .\" Copyright (c) 1996 Doug Rabson @@ -29,7 +29,7 @@ .\" .\" $FreeBSD: src/share/man/man9/vrele.9,v 1.9 2001/10/01 16:09:25 ru Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: November 1 2008 $ .Os .Dt VRELE 9 .Sh NAME @@ -38,7 +38,7 @@ .Sh SYNOPSIS .Fd #include <sys/param.h> .Fd #include <sys/vnode.h> -.Ft void +.Ft int .Fn vrele "struct vnode *vp" .Sh DESCRIPTION Decrement the @@ -52,6 +52,9 @@ when it is finished with the vnode. If the .Va v_usecount field of the vnode reaches zero, the vnode will be placed on the free list. +.Sh RETURN VALUES +.Fn vrele +returns 0 if it can guarantee that it did not sleep. .Sh SEE ALSO .Xr vget 9 , .Xr vnode 9 , |