taglinefilesource code
flock16fs/fcntl.cextern int fcntl_getlk(unsigned int, struct flock *);
flock17fs/fcntl.cextern int fcntl_setlk(unsigned int, unsigned int, struct flock *);
flock105fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
flock107fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
flock109fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
flock33fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l,
flock48fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
flock51fs/locks.cstruct flock flock;
flock60fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock61fs/locks.cif (flock.l_type == F_UNLCK)
flock63fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
flock68fs/locks.cflock.l_pid = fl->fl_owner->pid;
flock69fs/locks.cflock.l_start = fl->fl_start;
flock70fs/locks.cflock.l_len = fl->fl_end == OFFSET_MAX ? 0 :
flock72fs/locks.cflock.l_whence = fl->fl_whence;
flock73fs/locks.cflock.l_type = fl->fl_type;
flock74fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock79fs/locks.cflock.l_type = F_UNLCK;      /* no conflict found */
flock80fs/locks.cmemcpy_tofs(l, &flock, sizeof(flock));
flock88fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
flock93fs/locks.cstruct flock flock;
flock104fs/locks.cmemcpy_fromfs(&flock, l, sizeof(flock));
flock105fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
flock222fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l,