Lines Matching refs:file_lock
76 struct file_lock { struct
77 LIST_ENTRY(file_lock) nfslocklist;
91 LIST_HEAD(nfslocklist_head, file_lock); argument
94 LIST_HEAD(blockedlocklist_head, file_lock);
154 enum partialfilelock_status lock_partialfilelock(struct file_lock *fl);
156 void send_granted(struct file_lock *fl, int opcode);
164 struct file_lock * allocate_file_lock(const netobj *lockowner,
168 void deallocate_file_lock(struct file_lock *fl);
169 void fill_file_lock(struct file_lock *fl, const fhandle_t *fh,
179 int same_filelock_identity(const struct file_lock *fl0,
180 const struct file_lock *fl2);
187 void dump_filelock(const struct file_lock *fl);
188 struct file_lock * get_lock_matching_unlock(const struct file_lock *fl);
189 enum nfslock_status test_nfslock(const struct file_lock *fl,
190 struct file_lock **conflicting_fl);
191 enum nfslock_status lock_nfslock(struct file_lock *fl);
192 enum nfslock_status delete_nfslock(struct file_lock *fl);
193 enum nfslock_status unlock_nfslock(const struct file_lock *fl,
194 struct file_lock **released_lock, struct file_lock **left_lock,
195 struct file_lock **right_lock);
196 enum hwlock_status lock_hwlock(struct file_lock *fl);
197 enum split_status split_nfslock(const struct file_lock *exist_lock,
198 const struct file_lock *unlock_lock, struct file_lock **left_lock,
199 struct file_lock **right_lock);
200 int duplicate_block(struct file_lock *fl);
201 void add_blockingfilelock(struct file_lock *fl);
202 enum hwlock_status unlock_hwlock(const struct file_lock *fl);
203 enum hwlock_status test_hwlock(const struct file_lock *fl,
204 struct file_lock **conflicting_fl);
205 void remove_blockingfilelock(struct file_lock *fl);
209 const struct file_lock *fl);
212 const struct file_lock *fl, struct file_lock **conflicting_fl);
213 enum nlm_stats do_test(struct file_lock *fl,
214 struct file_lock **conflicting_fl);
215 enum nlm_stats do_unlock(struct file_lock *fl);
216 enum nlm_stats do_lock(struct file_lock *fl);
312 dump_filelock(const struct file_lock *fl) in dump_filelock()
371 struct file_lock *
375 struct file_lock *newfl; in allocate_file_lock()
425 fill_file_lock(struct file_lock *fl, const fhandle_t *fh, in fill_file_lock()
447 deallocate_file_lock(struct file_lock *fl) in deallocate_file_lock()
674 same_filelock_identity(const struct file_lock *fl0, const struct file_lock *fl1) in same_filelock_identity()
703 struct file_lock *
704 get_lock_matching_unlock(const struct file_lock *fl) in get_lock_matching_unlock()
706 struct file_lock *ifl; /* Iterator */ in get_lock_matching_unlock()
768 test_nfslock(const struct file_lock *fl, struct file_lock **conflicting_fl) in test_nfslock()
770 struct file_lock *ifl; /* Iterator */ in test_nfslock()
869 lock_nfslock(struct file_lock *fl) in lock_nfslock()
872 struct file_lock *dummy_fl; in lock_nfslock()
903 delete_nfslock(struct file_lock *fl) in delete_nfslock()
912 split_nfslock(const struct file_lock *exist_lock, in split_nfslock()
913 const struct file_lock *unlock_lock, struct file_lock **left_lock, in split_nfslock()
914 struct file_lock **right_lock) in split_nfslock()
958 unlock_nfslock(const struct file_lock *fl, struct file_lock **released_lock, in unlock_nfslock()
959 struct file_lock **left_lock, struct file_lock **right_lock) in unlock_nfslock()
961 struct file_lock *mfl; /* Matching file lock */ in unlock_nfslock()
1030 lock_hwlock(struct file_lock *fl) in lock_hwlock()
1113 unlock_hwlock(const struct file_lock *fl) in unlock_hwlock()
1154 test_hwlock(const struct file_lock *fl __unused, in test_hwlock()
1155 struct file_lock **conflicting_fl __unused) in test_hwlock()
1174 duplicate_block(struct file_lock *fl) in duplicate_block()
1176 struct file_lock *ifl; in duplicate_block()
1204 add_blockingfilelock(struct file_lock *fl) in add_blockingfilelock()
1232 remove_blockingfilelock(struct file_lock *fl) in remove_blockingfilelock()
1245 struct file_lock *ifl,*nfl; in clear_blockingfilelock()
1272 struct file_lock *ifl, *nfl; /* Iterator */ in retry_blockingfilelocklist()
1338 lock_partialfilelock(struct file_lock *fl) in lock_partialfilelock()
1454 unlock_partialfilelock(const struct file_lock *fl) in unlock_partialfilelock()
1456 struct file_lock *lfl,*rfl,*releasedfl,*selffl; in unlock_partialfilelock()
1612 struct file_lock *ifl, *nfl; in clear_partialfilelock()
1645 test_partialfilelock(const struct file_lock *fl, in test_partialfilelock()
1646 struct file_lock **conflicting_fl) in test_partialfilelock()
1690 do_test(struct file_lock *fl, struct file_lock **conflicting_fl) in do_test()
1749 do_lock(struct file_lock *fl) in do_lock()
1800 do_unlock(struct file_lock *fl) in do_unlock()
1873 struct file_lock test_fl, *conflicting_fl; in testlock()
1906 struct file_lock *newfl; in getlock()
1973 struct file_lock fl; in unlock()
1980 bzero(&fl,sizeof(struct file_lock)); in unlock()
2165 send_granted(struct file_lock *fl, int opcode __unused) in send_granted()