2005-04-21 16:53:53 +02:00
|
|
|
/* This is the file locking table. Like the filp table, it points to the
|
|
|
|
* inode table, however, in this case to achieve advisory locking.
|
|
|
|
*/
|
|
|
|
EXTERN struct file_lock {
|
|
|
|
short lock_type; /* F_RDLOCK or F_WRLOCK; 0 means unused slot */
|
|
|
|
pid_t lock_pid; /* pid of the process holding the lock */
|
2006-10-25 15:40:36 +02:00
|
|
|
struct vnode *lock_vnode;
|
2005-04-21 16:53:53 +02:00
|
|
|
off_t lock_first; /* offset of first byte locked */
|
|
|
|
off_t lock_last; /* offset of last byte locked */
|
|
|
|
} file_lock[NR_LOCKS];
|