Copyright (c) 1996 Doug Rabson All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in...
NAMEVOP_ADVLOCK - advisory record locking
SYNOPSISIn sys/param.h In sys/vnode.h In sys/fcntl.h In sys/lockf.h Ft int Fn VOP_ADVLOCK struct vnode *vp caddr_t id int op struct flock *fl int flags
DESCRIPTIONThe arguments are:
- Fa vp
- The vnode being manipulated.
- Fa id
- The id token which is changing the lock.
- Fa op
- The operation to perform (see fcntl(2)).
- Fa fl
- Description of the lock.
- Fa flags
One of more of the following:
- Shared or read lock.
- Exclusive or write lock.
- Wait until lock is granted.
- Use flock(2) semantics for lock.
- 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 Fn lf_advlock .