tag | line | file | source code |
flock | 16 | fs/fcntl.c | extern int fcntl_getlk(unsigned int, struct flock *); |
flock | 17 | fs/fcntl.c | extern int fcntl_setlk(unsigned int, unsigned int, struct flock *); |
flock | 90 | fs/fcntl.c | return fcntl_getlk(fd, (struct flock *) arg); |
flock | 92 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
flock | 94 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
flock | 25 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
flock | 54 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
flock | 57 | fs/locks.c | struct flock flock; |
flock | 66 | fs/locks.c | memcpy_fromfs(&flock, l, sizeof(flock)); |
flock | 67 | fs/locks.c | if (flock.l_type == F_UNLCK) |
flock | 69 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
flock | 74 | fs/locks.c | flock.l_pid = fl->fl_owner->pid; |
flock | 75 | fs/locks.c | flock.l_start = fl->fl_start; |
flock | 76 | fs/locks.c | flock.l_len = fl->fl_end == OFFSET_MAX ? 0 : |
flock | 78 | fs/locks.c | flock.l_whence = fl->fl_whence; |
flock | 79 | fs/locks.c | flock.l_type = fl->fl_type; |
flock | 80 | fs/locks.c | memcpy_tofs(l, &flock, sizeof(flock)); |
flock | 85 | fs/locks.c | flock.l_type = F_UNLCK; /* no conflict found */ |
flock | 86 | fs/locks.c | memcpy_tofs(l, &flock, sizeof(flock)); |
flock | 94 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
flock | 99 | fs/locks.c | struct flock flock; |
flock | 110 | fs/locks.c | memcpy_fromfs(&flock, l, sizeof(flock)); |
flock | 111 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
flock | 196 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |