Lines Matching refs:file_lock

985 struct file_lock;
988 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
989 void (*fl_release_private)(struct file_lock *);
993 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
994 unsigned long (*lm_owner_key)(struct file_lock *);
997 void (*lm_notify)(struct file_lock *); /* unblock callback */
998 int (*lm_grant)(struct file_lock *, int);
999 bool (*lm_break)(struct file_lock *);
1000 int (*lm_change)(struct file_lock *, int, struct list_head *);
1001 void (*lm_setup)(struct file_lock *, void **);
1039 struct file_lock { struct
1040 struct file_lock *fl_next; /* singly linked list for this inode */ argument
1105 void locks_free_lock(struct file_lock *fl);
1106 extern void locks_init_lock(struct file_lock *);
1107 extern struct file_lock * locks_alloc_lock(void);
1108 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1109 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1112 extern void locks_release_private(struct file_lock *);
1113 extern void posix_test_lock(struct file *, struct file_lock *);
1114 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1115 extern int posix_unblock_lock(struct file_lock *);
1116 extern int vfs_test_lock(struct file *, struct file_lock *);
1117 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1118 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1119 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1122 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1123 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1124 extern int lease_modify(struct file_lock *, int, struct list_head *);
1169 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1174 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1179 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1194 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1199 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1200 struct file_lock *conflock) in posix_lock_file()
1205 static inline int posix_unblock_lock(struct file_lock *waiter) in posix_unblock_lock()
1210 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1216 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1221 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1226 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1243 struct file_lock **flp, void **priv) in generic_setlease()
1249 struct file_lock **lease, void **priv) in vfs_setlease()
1254 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1275 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1761 int (*lock) (struct file *, int, struct file_lock *);
1765 int (*flock) (struct file *, int, struct file_lock *);
1768 int (*setlease)(struct file *, long, struct file_lock **, void **);
3206 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);