Lines Matching refs:file_lock
915 struct file_lock;
918 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
919 void (*fl_release_private)(struct file_lock *);
923 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
924 unsigned long (*lm_owner_key)(struct file_lock *);
927 void (*lm_notify)(struct file_lock *); /* unblock callback */
928 int (*lm_grant)(struct file_lock *, int);
929 bool (*lm_break)(struct file_lock *);
930 int (*lm_change)(struct file_lock *, int, struct list_head *);
931 void (*lm_setup)(struct file_lock *, void **);
963 struct file_lock { struct
964 struct file_lock *fl_next; /* singly linked list for this inode */ argument
1030 void locks_free_lock(struct file_lock *fl);
1031 extern void locks_init_lock(struct file_lock *);
1032 extern struct file_lock * locks_alloc_lock(void);
1033 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1034 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1037 extern void locks_release_private(struct file_lock *);
1038 extern void posix_test_lock(struct file *, struct file_lock *);
1039 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1040 extern int posix_lock_inode_wait(struct inode *, struct file_lock *);
1041 extern int posix_unblock_lock(struct file_lock *);
1042 extern int vfs_test_lock(struct file *, struct file_lock *);
1043 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1044 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1045 extern int flock_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1048 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1049 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1050 extern int lease_modify(struct file_lock *, int, struct list_head *);
1095 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1100 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1105 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1120 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1125 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1126 struct file_lock *conflock) in posix_lock_file()
1132 struct file_lock *fl) in posix_lock_inode_wait()
1137 static inline int posix_unblock_lock(struct file_lock *waiter) in posix_unblock_lock()
1142 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1148 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1153 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1159 struct file_lock *request) in flock_lock_inode_wait()
1175 struct file_lock **flp, void **priv) in generic_setlease()
1181 struct file_lock **lease, void **priv) in vfs_setlease()
1186 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1202 static inline int posix_lock_file_wait(struct file *filp, struct file_lock *fl) in posix_lock_file_wait()
1207 static inline int flock_lock_file_wait(struct file *filp, struct file_lock *fl) in flock_lock_file_wait()
1608 int (*lock) (struct file *, int, struct file_lock *);
1612 int (*flock) (struct file *, int, struct file_lock *);
1615 int (*setlease)(struct file *, long, struct file_lock **, void **);
2786 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);