taglinefilesource code
flock97fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
flock99fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
flock101fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
flock94fs/locks.cstruct flock *l);
flock188fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
flock191fs/locks.cstruct flock flock;
flock201fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock202fs/locks.cif ((flock.l_type == F_UNLCK) || (flock.l_type == F_EXLCK) ||
flock203fs/locks.c(flock.l_type == F_SHLCK))
flock206fs/locks.cif (!filp->f_inode || !posix_make_lock(filp, &file_lock, &flock))
flock211fs/locks.cflock.l_pid = fl->fl_owner->pid;
flock212fs/locks.cflock.l_start = fl->fl_start;
flock213fs/locks.cflock.l_len = fl->fl_end == OFFSET_MAX ? 0 :
flock215fs/locks.cflock.l_whence = 0;
flock216fs/locks.cflock.l_type = fl->fl_type;
flock217fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock222fs/locks.cflock.l_type = F_UNLCK;      /* no conflict found */
flock223fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock232fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
flock237fs/locks.cstruct flock flock;
flock266fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock267fs/locks.cif (!posix_make_lock(filp, &file_lock, &flock))
flock270fs/locks.cswitch (flock.l_type) {
flock411fs/locks.cstruct flock *l)
flock353include/linux/fs.hextern int fcntl_getlk(unsigned int fd, struct flock *l);
flock354include/linux/fs.hextern int fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l);