Lines Matching refs:file_lock

925 struct file_lock;
928 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
929 void (*fl_release_private)(struct file_lock *);
933 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
934 unsigned long (*lm_owner_key)(struct file_lock *);
937 void (*lm_notify)(struct file_lock *); /* unblock callback */
938 int (*lm_grant)(struct file_lock *, int);
939 bool (*lm_break)(struct file_lock *);
940 int (*lm_change)(struct file_lock *, int, struct list_head *);
941 void (*lm_setup)(struct file_lock *, void **);
979 struct file_lock { struct
980 struct file_lock *fl_next; /* singly linked list for this inode */ argument
1046 void locks_free_lock(struct file_lock *fl);
1047 extern void locks_init_lock(struct file_lock *);
1048 extern struct file_lock * locks_alloc_lock(void);
1049 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
1050 extern void locks_copy_conflock(struct file_lock *, struct file_lock *);
1053 extern void locks_release_private(struct file_lock *);
1054 extern void posix_test_lock(struct file *, struct file_lock *);
1055 extern int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
1056 extern int posix_unblock_lock(struct file_lock *);
1057 extern int vfs_test_lock(struct file *, struct file_lock *);
1058 extern int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
1059 extern int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
1060 extern int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
1063 extern int generic_setlease(struct file *, long, struct file_lock **, void **priv);
1064 extern int vfs_setlease(struct file *, long, struct file_lock **, void **);
1065 extern int lease_modify(struct file_lock *, int, struct list_head *);
1110 static inline void locks_init_lock(struct file_lock *fl) in locks_init_lock()
1115 static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl) in locks_copy_conflock()
1120 static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
1135 static inline void posix_test_lock(struct file *filp, struct file_lock *fl) in posix_test_lock()
1140 static inline int posix_lock_file(struct file *filp, struct file_lock *fl, in posix_lock_file()
1141 struct file_lock *conflock) in posix_lock_file()
1146 static inline int posix_unblock_lock(struct file_lock *waiter) in posix_unblock_lock()
1151 static inline int vfs_test_lock(struct file *filp, struct file_lock *fl) in vfs_test_lock()
1157 struct file_lock *fl, struct file_lock *conf) in vfs_lock_file()
1162 static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl) in vfs_cancel_lock()
1167 static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl) in locks_lock_inode_wait()
1183 struct file_lock **flp, void **priv) in generic_setlease()
1189 struct file_lock **lease, void **priv) in vfs_setlease()
1194 static inline int lease_modify(struct file_lock *fl, int arg, in lease_modify()
1220 static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl) in locks_lock_file_wait()
1628 int (*lock) (struct file *, int, struct file_lock *);
1632 int (*flock) (struct file *, int, struct file_lock *);
1635 int (*setlease)(struct file *, long, struct file_lock **, void **);
2821 extern int simple_nosetlease(struct file *, long, struct file_lock **, void **);