tag | line | file | source code |
file_lock | 87 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
file_lock | 89 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
file_lock | 91 | fs/locks.c | static int flock_locks_conflict(struct file_lock *caller_fl, |
file_lock | 92 | fs/locks.c | struct file_lock *sys_fl); |
file_lock | 93 | fs/locks.c | static int posix_locks_conflict(struct file_lock *caller_fl, |
file_lock | 94 | fs/locks.c | struct file_lock *sys_fl); |
file_lock | 95 | fs/locks.c | static int locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl); |
file_lock | 96 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
file_lock | 98 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
file_lock | 102 | fs/locks.c | static int locks_overlap(struct file_lock *fl1, struct file_lock *fl2); |
file_lock | 104 | fs/locks.c | static struct file_lock *locks_alloc_lock(struct file_lock *fl); |
file_lock | 105 | fs/locks.c | static void locks_insert_lock(struct file_lock **pos, struct file_lock *fl); |
file_lock | 106 | fs/locks.c | static void locks_delete_lock(struct file_lock **fl, unsigned int wait); |
file_lock | 108 | fs/locks.c | static struct file_lock *file_lock_table = NULL; |
file_lock | 111 | fs/locks.c | static inline void locks_free_lock(struct file_lock *fl) |
file_lock | 131 | fs/locks.c | static inline void locks_insert_block(struct file_lock *bfl, |
file_lock | 132 | fs/locks.c | struct file_lock *fl) |
file_lock | 144 | fs/locks.c | static inline void locks_delete_block(struct file_lock *bfl, |
file_lock | 145 | fs/locks.c | struct file_lock *fl) |
file_lock | 147 | fs/locks.c | struct file_lock *tfl; |
file_lock | 165 | fs/locks.c | struct file_lock file_lock; |
file_lock | 171 | fs/locks.c | if (!flock_make_lock(filp, &file_lock, cmd)) |
file_lock | 174 | fs/locks.c | if ((file_lock.fl_type != F_UNLCK) && !(filp->f_mode & 3)) |
file_lock | 177 | fs/locks.c | return (flock_lock_file(filp, &file_lock, cmd & LOCK_UN ? 0 : cmd & LOCK_NB ? 0 : 1)); |
file_lock | 188 | fs/locks.c | struct file_lock *fl,file_lock; |
file_lock | 201 | fs/locks.c | if (!filp->f_inode || !posix_make_lock(filp, &file_lock, &flock)) |
file_lock | 205 | fs/locks.c | if (posix_locks_conflict(&file_lock, fl)) { |
file_lock | 231 | fs/locks.c | struct file_lock file_lock; |
file_lock | 262 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
file_lock | 286 | fs/locks.c | return (posix_lock_file(filp, &file_lock, cmd == F_SETLKW)); |
file_lock | 293 | fs/locks.c | struct file_lock *fl; |
file_lock | 294 | fs/locks.c | struct file_lock **before; |
file_lock | 325 | fs/locks.c | struct file_lock *fl; |
file_lock | 352 | fs/locks.c | struct file_lock *fl; |
file_lock | 396 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
file_lock | 448 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
file_lock | 481 | fs/locks.c | static int posix_locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl) |
file_lock | 496 | fs/locks.c | static int flock_locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl) |
file_lock | 511 | fs/locks.c | static int locks_conflict(struct file_lock *caller_fl, struct file_lock *sys_fl) |
file_lock | 533 | fs/locks.c | static int locks_overlap(struct file_lock *fl1, struct file_lock *fl2) |
file_lock | 553 | fs/locks.c | struct file_lock *fl; |
file_lock | 578 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
file_lock | 581 | fs/locks.c | struct file_lock *fl; |
file_lock | 582 | fs/locks.c | struct file_lock *new_fl; |
file_lock | 583 | fs/locks.c | struct file_lock **before; |
file_lock | 660 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
file_lock | 663 | fs/locks.c | struct file_lock *fl; |
file_lock | 664 | fs/locks.c | struct file_lock *new_fl; |
file_lock | 665 | fs/locks.c | struct file_lock *left = NULL; |
file_lock | 666 | fs/locks.c | struct file_lock *right = NULL; |
file_lock | 667 | fs/locks.c | struct file_lock **before; |
file_lock | 816 | fs/locks.c | static struct file_lock *locks_alloc_lock(struct file_lock *fl) |
file_lock | 818 | fs/locks.c | struct file_lock *tmp; |
file_lock | 821 | fs/locks.c | if ((tmp = (struct file_lock *)kmalloc(sizeof(struct file_lock), |
file_lock | 844 | fs/locks.c | static void locks_insert_lock(struct file_lock **pos, struct file_lock *fl) |
file_lock | 866 | fs/locks.c | static void locks_delete_lock(struct file_lock **fl_p, unsigned int wait) |
file_lock | 868 | fs/locks.c | struct file_lock *fl; |
file_lock | 869 | fs/locks.c | struct file_lock *pfl; |
file_lock | 870 | fs/locks.c | struct file_lock *nfl; |
file_lock | 287 | include/linux/fs.h | struct file_lock *i_flock; |
file_lock | 338 | include/linux/fs.h | struct file_lock *fl_next; /* singly linked list for this inode */ |
file_lock | 339 | include/linux/fs.h | struct file_lock *fl_nextlink; /* doubly linked list of all locks */ |
file_lock | 340 | include/linux/fs.h | struct file_lock *fl_prevlink; /* used to simplify lock removal */ |
file_lock | 341 | include/linux/fs.h | struct file_lock *fl_block; |