summaryrefslogtreecommitdiffstats
path: root/share/man/man9/VOP_ADVLOCK.9
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>1999-06-30 12:02:52 +0000
committerkris <kris@FreeBSD.org>1999-06-30 12:02:52 +0000
commit355fb5338b7cbd55c9c47eed0510e8931fe333cc (patch)
tree248659b903de77904774aa9fa4b7afe654be613e /share/man/man9/VOP_ADVLOCK.9
parenteb9a61dc2f54efc129595b401324a611c9546931 (diff)
downloadFreeBSD-src-355fb5338b7cbd55c9c47eed0510e8931fe333cc.zip
FreeBSD-src-355fb5338b7cbd55c9c47eed0510e8931fe333cc.tar.gz
Flesh out VOP_ADVLOCK.9 with a description of the available flags
Sync vnode.9 with the definitions in <sys/vnode.h> Reviewed by: Doug Rabson
Diffstat (limited to 'share/man/man9/VOP_ADVLOCK.9')
-rw-r--r--share/man/man9/VOP_ADVLOCK.924
1 files changed, 18 insertions, 6 deletions
diff --git a/share/man/man9/VOP_ADVLOCK.9 b/share/man/man9/VOP_ADVLOCK.9
index 3a94e77..d641dc7 100644
--- a/share/man/man9/VOP_ADVLOCK.9
+++ b/share/man/man9/VOP_ADVLOCK.9
@@ -26,9 +26,9 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: VOP_ADVLOCK.9,v 1.3 1997/09/29 10:10:51 wosch Exp $
+.\" $Id: VOP_ADVLOCK.9,v 1.4 1998/03/12 07:31:08 charnier Exp $
.\"
-.Dd July 24, 1996
+.Dd June 30, 1999
.Os
.Dt VOP_ADVLOCK 9
.Sh NAME
@@ -48,18 +48,30 @@ The arguments are:
.It Ar vp
the vnode being manipulated
.It Ar id
-the process changing the lock
+the id token which is changing the lock
.It Ar op
-the operation to perform
+the operation to perform (see
+.Xr fcntl 2
+)
.It Ar fl
description of the lock
.It Ar flags
-???
+One of more of the following:
+.Bl -column F_UNLCK -offset indent
+.It Dv F_RDLCK Ta "shared or read lock"
+.It Dv F_UNLCK Ta "unlock"
+.It Dv F_WRLCK Ta "exclusive or write lock"
+.It Dv F_WAIT Ta "Wait until lock is granted"
+.It Dv F_FLOCK Ta Use
+.Xr flock 2
+semantics for lock
+.It Dv F_POSIX Ta "Use POSIX semantics for lock"
+.El
.El
.Pp
This entry point manipulates advisory record locks on the file. Most
filesystems delegate the work for this call to
-.Xr lf_advlock 9 .
+.Fn lf_advlock .
.Sh RETURN VALUES
Zero is returned on success, otherwise an error is returned.
.Sh SEE ALSO
OpenPOWER on IntegriCloud