taglinefilesource code
flock16fs/fcntl.cextern int fcntl_getlk(unsigned int, struct flock *);
flock17fs/fcntl.cextern int fcntl_setlk(unsigned int, unsigned int, struct flock *);
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);
flock25fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l,
flock54fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
flock57fs/locks.cstruct flock flock;
flock66fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock67fs/locks.cif (flock.l_type == F_UNLCK)
flock69fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
flock74fs/locks.cflock.l_pid = fl->fl_owner->pid;
flock75fs/locks.cflock.l_start = fl->fl_start;
flock76fs/locks.cflock.l_len = fl->fl_end == OFFSET_MAX ? 0 :
flock78fs/locks.cflock.l_whence = fl->fl_whence;
flock79fs/locks.cflock.l_type = fl->fl_type;
flock80fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock85fs/locks.cflock.l_type = F_UNLCK;      /* no conflict found */
flock86fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock94fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
flock99fs/locks.cstruct flock flock;
flock110fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock111fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
flock196fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l,