00001 /* This is the file locking table. Like the filp table, it points to the 00002 * inode table, however, in this case to achieve advisory locking. 00003 */ 00004 EXTERN struct file_lock { 00005 short lock_type; /* F_RDLOCK or F_WRLOCK; 0 means unused slot */ 00006 pid_t lock_pid; /* pid of the process holding the lock */ 00007 struct vnode *lock_vnode; 00008 off_t lock_first; /* offset of first byte locked */ 00009 off_t lock_last; /* offset of last byte locked */ 00010 } file_lock[NR_LOCKS]; 00011 00012 #define NIL_LOCK (struct file_lock *) 0 00013
1.5.8