logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VOP_ADVLOCK — advisory record locking

Authors

       This manual page was written by Doug Rabson.

Debian                                            May 27, 2019                                    VOP_ADVLOCK(9)

Description

       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_WAIT    Wait until lock is granted.
                    F_FLOCK   Use flock(2) semantics for lock.
                    F_POSIX   Use POSIX semantics for lock.
                    F_REMOTE  Lock owner is remote NFS client.
                    F_NOINTR  Mask signals while waiting for the lock.

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

Name

       VOP_ADVLOCK — advisory record locking

Return Values

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

See Also

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

Synopsis

#include<sys/param.h>#include<sys/vnode.h>#include<sys/fcntl.h>#include<sys/lockf.h>intVOP_ADVLOCK(structvnode*vp, caddr_tid, intop, structflock*fl, intflags);

See Also