Lines Matching defs:file_lock

29 struct file_lock;
33 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
34 void (*fl_release_private)(struct file_lock *);
41 void (*lm_notify)(struct file_lock *); /* unblock callback */
42 int (*lm_grant)(struct file_lock *, int);
43 bool (*lm_lock_expirable)(struct file_lock *cfl);
70 * struct file_lock has a union that some filesystems use to track
76 * struct file_lock represents a generic "file lock". It's used to represent
112 struct file_lock {
163 static inline bool lock_is_unlock(struct file_lock *fl)
168 static inline bool lock_is_read(struct file_lock *fl)
173 static inline bool lock_is_write(struct file_lock *fl)
178 static inline void locks_wake_up(struct file_lock *fl)
185 void locks_free_lock(struct file_lock *fl);
186 void locks_init_lock(struct file_lock *);
187 struct file_lock *locks_alloc_lock(void);
188 void locks_copy_lock(struct file_lock *, struct file_lock *);
189 void locks_copy_conflock(struct file_lock *, struct file_lock *);
192 void locks_release_private(struct file_lock *);
193 void posix_test_lock(struct file *, struct file_lock *);
194 int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
195 int locks_delete_block(struct file_lock *);
196 int vfs_test_lock(struct file *, struct file_lock *);
197 int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
198 int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
200 int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
264 static inline bool lock_is_unlock(struct file_lock *fl)
269 static inline bool lock_is_read(struct file_lock *fl)
274 static inline bool lock_is_write(struct file_lock *fl)
279 static inline void locks_wake_up(struct file_lock *fl)
288 static inline void locks_init_lock(struct file_lock *fl)
298 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl)
303 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl)
318 static inline void posix_test_lock(struct file *filp, struct file_lock *fl)
323 static inline int posix_lock_file(struct file *filp, struct file_lock *fl,
324 struct file_lock *conflock)
329 static inline int locks_delete_block(struct file_lock *waiter)
334 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl)
340 struct file_lock *fl, struct file_lock *conf)
345 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
355 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)
415 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)