Rev | Line | |
---|
[9] | 1 | /* This is the file locking table. Like the filp table, it points to the
|
---|
| 2 | * inode table, however, in this case to achieve advisory locking.
|
---|
| 3 | */
|
---|
| 4 | EXTERN struct file_lock {
|
---|
| 5 | short lock_type; /* F_RDLOCK or F_WRLOCK; 0 means unused slot */
|
---|
| 6 | pid_t lock_pid; /* pid of the process holding the lock */
|
---|
| 7 | struct inode *lock_inode; /* pointer to the inode locked */
|
---|
| 8 | off_t lock_first; /* offset of first byte locked */
|
---|
| 9 | off_t lock_last; /* offset of last byte locked */
|
---|
| 10 | } file_lock[NR_LOCKS];
|
---|
Note:
See
TracBrowser
for help on using the repository browser.