tag | line | file | source code |
flock | 97 | fs/fcntl.c | return fcntl_getlk(fd, (struct flock *) arg); |
flock | 99 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
flock | 101 | fs/fcntl.c | return fcntl_setlk(fd, cmd, (struct flock *) arg); |
flock | 94 | fs/locks.c | struct flock *l); |
flock | 188 | fs/locks.c | int fcntl_getlk(unsigned int fd, struct flock *l) |
flock | 191 | fs/locks.c | struct flock flock; |
flock | 201 | fs/locks.c | memcpy_fromfs(&flock, l, sizeof(flock)); |
flock | 202 | fs/locks.c | if ((flock.l_type == F_UNLCK) || (flock.l_type == F_EXLCK) || |
flock | 203 | fs/locks.c | (flock.l_type == F_SHLCK)) |
flock | 206 | fs/locks.c | if (!filp->f_inode || !posix_make_lock(filp, &file_lock, &flock)) |
flock | 211 | fs/locks.c | flock.l_pid = fl->fl_owner->pid; |
flock | 212 | fs/locks.c | flock.l_start = fl->fl_start; |
flock | 213 | fs/locks.c | flock.l_len = fl->fl_end == OFFSET_MAX ? 0 : |
flock | 215 | fs/locks.c | flock.l_whence = 0; |
flock | 216 | fs/locks.c | flock.l_type = fl->fl_type; |
flock | 217 | fs/locks.c | memcpy_tofs(l, &flock, sizeof(flock)); |
flock | 222 | fs/locks.c | flock.l_type = F_UNLCK; /* no conflict found */ |
flock | 223 | fs/locks.c | memcpy_tofs(l, &flock, sizeof(flock)); |
flock | 232 | fs/locks.c | int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l) |
flock | 237 | fs/locks.c | struct flock flock; |
flock | 266 | fs/locks.c | memcpy_fromfs(&flock, l, sizeof(flock)); |
flock | 267 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
flock | 270 | fs/locks.c | switch (flock.l_type) { |
flock | 411 | fs/locks.c | struct flock *l) |
flock | 353 | include/linux/fs.h | extern int fcntl_getlk(unsigned int fd, struct flock *l); |
flock | 354 | include/linux/fs.h | extern int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l); |