make vfs & filesystems use failable copying
[minix3.git] / servers / vfs / lock.h
blobc2baa651efe8e3273d3233762a0c96d3ab28c383
1 #ifndef __VFS_LOCK_H__
2 #define __VFS_LOCK_H__
4 /* This is the file locking table. Like the filp table, it points to the
5 * inode table, however, in this case to achieve advisory locking.
6 */
7 EXTERN struct file_lock {
8 short lock_type; /* F_RDLOCK or F_WRLOCK; 0 means unused slot */
9 pid_t lock_pid; /* pid of the process holding the lock */
10 struct vnode *lock_vnode;
11 off_t lock_first; /* offset of first byte locked */
12 off_t lock_last; /* offset of last byte locked */
13 } file_lock[NR_LOCKS];
15 #endif