Lines Matching refs:file_lock
1027 struct file_lock;
1030 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
1031 void (*fl_release_private)(struct file_lock *);
1037 void (*lm_notify)(struct file_lock *); /* unblock callback */
1038 int (*lm_grant)(struct file_lock *, int);
1039 bool (*lm_break)(struct file_lock *);
1040 int (*lm_change)(struct file_lock *, int, struct list_head *);
1041 void (*lm_setup)(struct file_lock *, void **);
1079 struct file_lock { struct
1080 struct file_lock *fl_blocker; /* The lock, that is blocking us */ argument
1151 void locks_free_lock(struct file_lock *fl);
1152 extern void locks_init_lock(struct file_lock *);
1153 extern struct file_lock * locks_alloc_lock(void);
1154 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1155 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1158 extern void locks_release_private(struct file_lock *);
1159 extern void posix_test_lock(struct file *, struct file_lock *);
1160 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1161 extern int locks_delete_block(struct file_lock *);
1162 extern int vfs_test_lock(struct file *, struct file_lock *);
1163 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1164 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1165 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1168 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1169 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1170 extern int lease_modify(struct file_lock *, int, struct list_head *);
1220 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1225 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1230 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1245 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1250 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1251 struct file_lock *conflock) in posix_lock_file()
1256 static inline int locks_delete_block(struct file_lock *waiter) in locks_delete_block()
1261 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1267 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1272 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1277 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1294 struct file_lock **flp, void **priv) in generic_setlease()
1300 struct file_lock **lease, void **priv) in vfs_setlease()
1305 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1326 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1852 int (*lock) (struct file *, int, struct file_lock *);
1856 int (*flock) (struct file *, int, struct file_lock *);
1859 int (*setlease)(struct file *, long, struct file_lock **, void **);
3343 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);