Lines Matching refs:file_lock

973 struct file_lock;
976 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
977 void (*fl_release_private)(struct file_lock *);
981 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
982 unsigned long (*lm_owner_key)(struct file_lock *);
985 void (*lm_notify)(struct file_lock *); /* unblock callback */
986 int (*lm_grant)(struct file_lock *, int);
987 bool (*lm_break)(struct file_lock *);
988 int (*lm_change)(struct file_lock *, int, struct list_head *);
989 void (*lm_setup)(struct file_lock *, void **);
1027 struct file_lock { struct
1028 struct file_lock *fl_next; /* singly linked list for this inode */ argument
1093 void locks_free_lock(struct file_lock *fl);
1094 extern void locks_init_lock(struct file_lock *);
1095 extern struct file_lock * locks_alloc_lock(void);
1096 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1097 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1100 extern void locks_release_private(struct file_lock *);
1101 extern void posix_test_lock(struct file *, struct file_lock *);
1102 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1103 extern int posix_unblock_lock(struct file_lock *);
1104 extern int vfs_test_lock(struct file *, struct file_lock *);
1105 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1106 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1107 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1110 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1111 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1112 extern int lease_modify(struct file_lock *, int, struct list_head *);
1157 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1162 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1167 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1182 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1187 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1188 struct file_lock *conflock) in posix_lock_file()
1193 static inline int posix_unblock_lock(struct file_lock *waiter) in posix_unblock_lock()
1198 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1204 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1209 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1214 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1231 struct file_lock **flp, void **priv) in generic_setlease()
1237 struct file_lock **lease, void **priv) in vfs_setlease()
1242 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1263 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1746 int (*lock) (struct file *, int, struct file_lock *);
1750 int (*flock) (struct file *, int, struct file_lock *);
1753 int (*setlease)(struct file *, long, struct file_lock **, void **);
3185 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);