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 | 105 | fs/fcntl.c | return fcntl_getlk(fd, (struct flock *) arg); |
flock | 107 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
flock | 109 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
flock | 74 | fs/locks.c | struct flock *l); |
flock | 118 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
flock | 121 | fs/locks.c | struct flock flock; |
flock | 131 | fs/locks.c | memcpy_fromfs(&flock, l, sizeof(flock)); |
flock | 132 | fs/locks.c | if ((flock.l_type == F_UNLCK) || (flock.l_type == F_EXLCK) || |
flock | 133 | fs/locks.c | (flock.l_type == F_SHLCK)) |
flock | 136 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
flock | 141 | fs/locks.c | flock.l_pid = fl->fl_owner->pid; |
flock | 142 | fs/locks.c | flock.l_start = fl->fl_start; |
flock | 143 | fs/locks.c | flock.l_len = fl->fl_end == OFFSET_MAX ? 0 : |
flock | 145 | fs/locks.c | flock.l_whence = 0; |
flock | 146 | fs/locks.c | flock.l_type = fl->fl_type; |
flock | 147 | fs/locks.c | memcpy_tofs(l, &flock, sizeof(flock)); |
flock | 152 | fs/locks.c | flock.l_type = F_UNLCK; /* no conflict found */ |
flock | 153 | fs/locks.c | memcpy_tofs(l, &flock, sizeof(flock)); |
flock | 161 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
flock | 166 | fs/locks.c | struct flock flock; |
flock | 179 | fs/locks.c | memcpy_fromfs(&flock, l, sizeof(flock)); |
flock | 180 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
flock | 183 | fs/locks.c | switch (flock.l_type) { |
flock | 232 | fs/locks.c | struct flock *l) |