Lines Matching refs:file

12 #define FL_LEASE	32	/* lease held on this file */
17 #define FL_OFDLCK 1024 /* lock is "owned" by struct file */
76 * struct file_lock represents a generic "file lock". It's used to represent
109 struct file *flc_file;
150 int fcntl_getlk(struct file *, unsigned int, struct flock *);
151 int fcntl_setlk(unsigned int, struct file *, unsigned int,
155 int fcntl_getlk64(struct file *, unsigned int, struct flock64 *);
156 int fcntl_setlk64(unsigned int, struct file *, unsigned int,
160 int fcntl_setlease(unsigned int fd, struct file *filp, int arg);
161 int fcntl_getlease(struct file *filp);
190 void locks_remove_posix(struct file *, fl_owner_t);
191 void locks_remove_file(struct file *);
193 void posix_test_lock(struct file *, struct file_lock *);
194 int posix_lock_file(struct file *, struct file_lock *, 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);
207 int generic_setlease(struct file *, int, struct file_lease **, void **priv);
208 int kernel_setlease(struct file *, int, struct file_lease **, void **);
209 int vfs_setlease(struct file *, int, struct file_lease **, void **);
218 struct file *filp, struct files_struct *files);
229 static inline int fcntl_getlk(struct file *file, unsigned int cmd,
235 static inline int fcntl_setlk(unsigned int fd, struct file *file,
242 static inline int fcntl_getlk64(struct file *file, unsigned int cmd,
248 static inline int fcntl_setlk64(unsigned int fd, struct file *file,
254 static inline int fcntl_setlease(unsigned int fd, struct file *filp, int arg)
259 static inline int fcntl_getlease(struct file *filp)
308 static inline void locks_remove_posix(struct file *filp, fl_owner_t owner)
313 static inline void locks_remove_file(struct file *filp)
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,
334 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl)
339 static inline int vfs_lock_file(struct file *filp, unsigned int cmd,
345 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
371 static inline int generic_setlease(struct file *filp, int arg,
377 static inline int kernel_setlease(struct file *filp, int arg,
383 static inline int vfs_setlease(struct file *filp, int arg,
397 struct file *filp, struct files_struct *files) {}
415 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)
427 * file.
441 * file.