VOP_ADVLOCK -- advisory record locking
#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);
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().
Zero is returned on success, otherwise an error is returned.
fcntl(2), flock(2), vnode(9)
This man page was written by Doug Rabson.
FreeBSD 5.2.1 June 30, 1999 FreeBSD 5.2.1 [ Back ] |