*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> VOP_ADVLOCK (9)              
Title
Content
Arch
Section
 

VOP_ADVLOCK(9)

Contents


NAME    [Toc]    [Back]

     VOP_ADVLOCK -- advisory record locking

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/vnode.h>
     #include <sys/fcntl.h>
     #include <sys/lockf.h>

     int
     VOP_ADVLOCK(struct vnode *vp, caddr_t id, int op, struct flock *fl,
	 int flags);

DESCRIPTION    [Toc]    [Back]

     The arguments are:

     vp     the vnode being manipulated

     id     the id token which is changing the lock

     op     the operation to perform (see fcntl(2))

     fl     description of the lock

     flags  One of more of the following:

		  F_RDLCK    shared or read lock
		  F_UNLCK    unlock
		  F_WRLCK    exclusive or write lock
		  F_WAIT     Wait until lock is granted
		  F_FLOCK    Use flock(2) semantics for lock
		  F_POSIX    Use POSIX semantics for lock

     This entry point manipulates advisory record locks on the file.  Most
     file systems delegate the work for this call to lf_advlock().

RETURN VALUES    [Toc]    [Back]

     Zero is returned on success, otherwise an error is returned.

SEE ALSO    [Toc]    [Back]

      
      
     fcntl(2), flock(2), vnode(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Doug Rabson.


FreeBSD 5.2.1			 June 30, 1999			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
lockf FreeBSD record locking on files
lockf IRIX record locking on files
lockf OpenBSD record locking on files
lockf NetBSD record locking on files
lockf HP-UX provide semaphores and record locking on files
noderun IRIX Run process on specific node (advisory specification)
flock Linux apply or remove an advisory lock on an open file
flock IRIX apply or remove an advisory lock on an open file
flock FreeBSD apply or remove an advisory lock on an open file
flock NetBSD apply or remove an advisory lock on an open file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service