Home
last modified time | relevance | path

Searched refs:file_lock (Results 1 – 25 of 34) sorted by relevance

12

/linux-2.4.37.9/fs/
Dlocks.c138 static struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
144 static inline void locks_free_lock(struct file_lock *fl) in locks_free_lock()
162 void locks_init_lock(struct file_lock *fl) in locks_init_lock()
186 struct file_lock *lock = (struct file_lock *) foo; in init_once()
198 void locks_copy_lock(struct file_lock *new, struct file_lock *fl) in locks_copy_lock()
214 static struct file_lock *flock_make_lock(struct file *filp, unsigned int type) in flock_make_lock()
216 struct file_lock *fl = locks_alloc_lock(); in flock_make_lock()
234 static int assign_type(struct file_lock *fl, int type) in assign_type()
251 static int flock_to_posix_lock(struct file *filp, struct file_lock *fl, in flock_to_posix_lock()
301 static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl, in flock64_to_posix_lock()
[all …]
Dfile.c68 write_unlock(&files->file_lock); in expand_fd_array()
92 write_lock(&files->file_lock); in expand_fd_array()
113 write_unlock(&files->file_lock); in expand_fd_array()
115 write_lock(&files->file_lock); in expand_fd_array()
119 write_unlock(&files->file_lock); in expand_fd_array()
121 write_lock(&files->file_lock); in expand_fd_array()
176 write_unlock(&files->file_lock); in expand_fdset()
192 write_lock(&files->file_lock); in expand_fdset()
217 write_unlock(&files->file_lock); in expand_fdset()
220 write_lock(&files->file_lock); in expand_fdset()
[all …]
Dfcntl.c68 write_lock(&files->file_lock); in locate_fd()
118 write_unlock(&files->file_lock); in allocate_fd()
134 write_unlock(&files->file_lock); in dupfd()
145 write_lock(&files->file_lock); in sys_dup2()
176 write_unlock(&files->file_lock); in sys_dup2()
184 write_unlock(&files->file_lock); in sys_dup2()
188 write_unlock(&files->file_lock); in sys_dup2()
Dopen.c91 write_lock(&files->file_lock); in fd_install()
95 write_unlock(&files->file_lock); in fd_install()
747 write_lock(&files->file_lock); in get_unused_fd()
796 write_unlock(&files->file_lock); in get_unused_fd()
877 write_lock(&files->file_lock); in sys_close()
886 write_unlock(&files->file_lock); in sys_close()
890 write_unlock(&files->file_lock); in sys_close()
Ddnotify.c100 read_lock(&current->files->file_lock); in fcntl_dirnotify()
102 read_unlock(&current->files->file_lock); in fcntl_dirnotify()
Dfile_table.c137 read_lock(&files->file_lock); in fget()
141 read_unlock(&files->file_lock); in fget()
Dexec.c525 write_lock(&files->file_lock); in flush_old_files()
537 write_unlock(&files->file_lock); in flush_old_files()
543 write_lock(&files->file_lock); in flush_old_files()
546 write_unlock(&files->file_lock); in flush_old_files()
/linux-2.4.37.9/include/linux/
Dfile.h15 read_lock(&files->file_lock); in get_close_on_exec()
17 read_unlock(&files->file_lock); in get_close_on_exec()
24 write_lock(&files->file_lock); in set_close_on_exec()
29 write_unlock(&files->file_lock); in set_close_on_exec()
69 write_lock(&files->file_lock); in put_unused_fd()
71 write_unlock(&files->file_lock); in put_unused_fd()
Dfs.h472 struct file_lock *i_flock;
624 struct file_lock { struct
625 struct file_lock *fl_next; /* singly linked list for this inode */ argument
637 void (*fl_notify)(struct file_lock *); /* unblock callback */ argument
638 void (*fl_insert)(struct file_lock *); /* lock insertion callback */ argument
639 void (*fl_remove)(struct file_lock *); /* lock removal callback */ argument
669 extern void locks_init_lock(struct file_lock *); argument
670 extern void locks_copy_lock(struct file_lock *, struct file_lock *);
673 extern struct file_lock *posix_test_lock(struct file *, struct file_lock *);
674 extern int posix_lock_file(struct file *, struct file_lock *, unsigned int);
[all …]
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_owner.c29 read_lock(&files->file_lock); in match_comm()
32 read_unlock(&files->file_lock); in match_comm()
38 read_unlock(&files->file_lock); in match_comm()
60 read_lock(&files->file_lock); in match_pid()
63 read_unlock(&files->file_lock); in match_pid()
69 read_unlock(&files->file_lock); in match_pid()
93 read_lock(&files->file_lock); in match_sid()
100 read_unlock(&files->file_lock); in match_sid()
/linux-2.4.37.9/fs/lockd/
Dclntlock.c40 struct file_lock * b_lock; /* local file lock */
51 nlmclnt_block(struct nlm_host *host, struct file_lock *fl, u32 *statp) in nlmclnt_block()
142 struct file_lock *fl; in nlmclnt_mark_reclaim()
147 fl = list_entry(tmp, struct file_lock, fl_link); in nlmclnt_mark_reclaim()
202 struct file_lock *fl; in reclaimer()
219 fl = list_entry(tmp, struct file_lock, fl_link); in reclaimer()
Dclntproc.c24 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
25 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
26 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
48 nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs()
104 nlmclnt_proc(struct inode *inode, int cmd, struct file_lock *fl) in nlmclnt_proc()
384 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
409 void nlmclnt_insert_lock_callback(struct file_lock *fl) in nlmclnt_insert_lock_callback()
414 void nlmclnt_remove_lock_callback(struct file_lock *fl) in nlmclnt_remove_lock_callback()
443 nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_lock()
480 nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl) in nlmclnt_reclaim()
[all …]
Dsvclock.c45 static void nlmsvc_notify_blocked(struct file_lock *);
108 struct file_lock *fl; in nlmsvc_lookup_block()
237 struct file_lock *fl = &block->b_call.a_args.lock.fl; in nlmsvc_delete_block()
309 struct file_lock *conflock; in nlmsvc_lock()
394 struct file_lock *fl; in nlmsvc_testlock()
478 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
511 struct file_lock *conflock; in nlmsvc_grant_blocked()
Dsvcsubs.c154 struct file_lock *fl; in nlm_traverse_locks()
171 struct file_lock lock = *fl; in nlm_traverse_locks()
Dxdr.c125 struct file_lock *fl = &lock->fl; in nlm_decode_lock()
159 struct file_lock *fl = &lock->fl; in nlm_encode_lock()
197 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
433 struct file_lock *fl = &resp->lock.fl; in nlmclt_decode_testres()
Dxdr4.c125 struct file_lock *fl = &lock->fl; in nlm4_decode_lock()
158 struct file_lock *fl = &lock->fl; in nlm4_encode_lock()
198 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres()
439 struct file_lock *fl = &resp->lock.fl; in nlm4clt_decode_testres()
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_owner.c32 read_lock(&files->file_lock); in match_pid()
35 read_unlock(&files->file_lock); in match_pid()
41 read_unlock(&files->file_lock); in match_pid()
65 read_lock(&files->file_lock); in match_sid()
72 read_unlock(&files->file_lock); in match_sid()
/linux-2.4.37.9/include/linux/lockd/
Dlockd.h133 int nlmclnt_block(struct nlm_host *, struct file_lock *, u32 *);
134 int nlmclnt_cancel(struct nlm_host *, struct file_lock *);
137 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *);
198 nlm_compare_locks(struct file_lock *fl1, struct file_lock *fl2) in nlm_compare_locks()
Dbind.h38 extern int nlmclnt_proc(struct inode *, int, struct file_lock *);
Dxdr.h32 struct file_lock fl;
/linux-2.4.37.9/kernel/
Dfork.c467 newf->file_lock = RW_LOCK_UNLOCKED; in copy_files()
480 write_lock(&newf->file_lock); in copy_files()
482 write_unlock(&newf->file_lock); in copy_files()
486 read_lock(&oldf->file_lock); in copy_files()
497 read_unlock(&oldf->file_lock); in copy_files()
499 write_lock(&newf->file_lock); in copy_files()
501 write_unlock(&newf->file_lock); in copy_files()
505 read_lock(&oldf->file_lock); in copy_files()
529 read_unlock(&oldf->file_lock); in copy_files()
/linux-2.4.37.9/fs/nfs/
Dfile.c245 do_getlk(struct inode *inode, int cmd, struct file_lock *fl) in do_getlk()
256 do_unlk(struct inode *inode, int cmd, struct file_lock *fl) in do_unlk()
284 do_setlk(struct file *filp, int cmd, struct file_lock *fl) in do_setlk()
335 nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
/linux-2.4.37.9/fs/proc/
Dbase.c664 read_lock(&files->file_lock); in proc_readfd()
672 read_unlock(&files->file_lock); in proc_readfd()
684 read_lock(&files->file_lock); in proc_readfd()
687 read_lock(&files->file_lock); in proc_readfd()
689 read_unlock(&files->file_lock); in proc_readfd()
869 read_lock(&files->file_lock); in proc_lookupfd()
874 read_unlock(&files->file_lock); in proc_lookupfd()
889 read_unlock(&files->file_lock); in proc_lookupfd()
/linux-2.4.37.9/arch/mips/kernel/
Dirixioctl.c37 read_lock(&current->files->file_lock); in get_tty()
45 read_unlock(&current->files->file_lock); in get_tty()
/linux-2.4.37.9/Documentation/filesystems/
DLocking181 --------------------------- file_lock ------------------------------------
183 void (*fl_notify)(struct file_lock *); /* unblock callback */
184 void (*fl_insert)(struct file_lock *); /* lock insertion callback */
185 void (*fl_remove)(struct file_lock *); /* lock removal callback */
239 int (*lock) (struct file *, int, struct file_lock *);

12