/linux-4.4.14/fs/ |
D | locks.c | 461 struct flock *l) in flock_to_posix_lock() 1924 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument 1956 if (f.file->f_op->flock) in SYSCALL_DEFINE2() 1957 error = f.file->f_op->flock(f.file, in SYSCALL_DEFINE2() 1989 static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl) in posix_lock_to_flock() argument 1991 flock->l_pid = IS_OFDLCK(fl) ? -1 : fl->fl_pid; in posix_lock_to_flock() 2002 flock->l_start = fl->fl_start; in posix_lock_to_flock() 2003 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock() 2005 flock->l_whence = 0; in posix_lock_to_flock() 2006 flock->l_type = fl->fl_type; in posix_lock_to_flock() [all …]
|
D | compat.c | 350 static int get_compat_flock(struct flock *kfl, struct compat_flock __user *ufl) in get_compat_flock() 362 static int put_compat_flock(struct flock *kfl, struct compat_flock __user *ufl) in put_compat_flock() 375 static int get_compat_flock64(struct flock *kfl, struct compat_flock64 __user *ufl) in get_compat_flock64() 389 static int put_compat_flock64(struct flock *kfl, struct compat_flock64 __user *ufl) in put_compat_flock64() 421 struct flock f; in COMPAT_SYSCALL_DEFINE3()
|
D | fcntl.c | 273 err = fcntl_getlk(filp, cmd, (struct flock __user *) arg); in do_fcntl() 283 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl()
|
D | Kconfig | 73 for filesystems like NFS and for the flock() system
|
/linux-4.4.14/fs/9p/ |
D | vfs_file.c | 152 struct p9_flock flock; in v9fs_file_do_lock() local 169 memset(&flock, 0, sizeof(flock)); in v9fs_file_do_lock() 173 flock.type = P9_LOCK_TYPE_RDLCK; in v9fs_file_do_lock() 176 flock.type = P9_LOCK_TYPE_WRLCK; in v9fs_file_do_lock() 179 flock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_do_lock() 182 flock.start = fl->fl_start; in v9fs_file_do_lock() 184 flock.length = 0; in v9fs_file_do_lock() 186 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock() 187 flock.proc_id = fl->fl_pid; in v9fs_file_do_lock() 188 flock.client_id = fid->clnt->name; in v9fs_file_do_lock() [all …]
|
/linux-4.4.14/Documentation/filesystems/ |
D | locks.txt | 14 The old flock(2) emulation in the kernel was swapped for proper BSD 15 compatible flock(2) support in the 1.3.x series of kernels. With the 29 Because sendmail was unable to use the old flock() emulation, many sendmail 30 installations use fcntl() instead of flock(). This is true of Slackware 3.0 34 file with flock(). With pre 1.3.96 kernels this could result in deadlocks that, 42 is to make flock() and fcntl() locks oblivious to each other. Both can 49 cooperative flock()/fcntl() are those that emulate flock() using
|
D | mandatory-locking.txt | 32 processes. File locks are applied using the flock() and fcntl() system calls 120 locks using flock() never result in a mandatory lock.
|
D | ocfs2.txt | 80 localflocks This disables cluster aware flock.
|
D | 00-INDEX | 91 - info on file locking implementations, flock() vs. fcntl(), etc.
|
D | Locking | 351 [1]: ->fl_release_private for flock or POSIX locks is currently allowed 458 int (*flock) (struct file *, int, struct file_lock *);
|
D | vfs.txt | 827 int (*flock) (struct file *, int, struct file_lock *); 891 flock: called by the flock(2) system call
|
/linux-4.4.14/fs/cifs/ |
D | file.c | 897 __u8 type, struct file_lock *flock) in cifs_lock_test() argument 910 flock->fl_start = conf_lock->offset; in cifs_lock_test() 911 flock->fl_end = conf_lock->offset + conf_lock->length - 1; in cifs_lock_test() 912 flock->fl_pid = conf_lock->pid; in cifs_lock_test() 914 flock->fl_type = F_RDLCK; in cifs_lock_test() 916 flock->fl_type = F_WRLCK; in cifs_lock_test() 920 flock->fl_type = F_UNLCK; in cifs_lock_test() 990 cifs_posix_lock_test(struct file *file, struct file_lock *flock) in cifs_posix_lock_test() argument 994 unsigned char saved_type = flock->fl_type; in cifs_posix_lock_test() 996 if ((flock->fl_flags & FL_POSIX) == 0) in cifs_posix_lock_test() [all …]
|
D | smb2file.c | 110 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 119 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 141 if (flock->fl_start > li->offset || in smb2_unlock_range() 142 (flock->fl_start + length) < in smb2_unlock_range()
|
D | smb2proto.h | 96 struct file_lock *flock, const unsigned int xid);
|
D | cifsproto.h | 138 struct file_lock *flock, const unsigned int xid);
|
/linux-4.4.14/drivers/staging/lustre/ |
D | README.txt | 41 Enable local flock support, using only client-local flock 42 (faster, for applications that require flock but do not run 45 flock
|
/linux-4.4.14/arch/mips/include/uapi/asm/ |
D | fcntl.h | 63 struct flock { struct
|
/linux-4.4.14/fs/afs/ |
D | Makefile | 14 flock.o \
|
D | file.c | 40 .flock = afs_flock,
|
/linux-4.4.14/net/9p/ |
D | client.c | 2182 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status) in p9_client_lock_dotl() argument 2192 fid->fid, flock->type, flock->flags, flock->start, in p9_client_lock_dotl() 2193 flock->length, flock->proc_id, flock->client_id); in p9_client_lock_dotl() 2195 req = p9_client_rpc(clnt, P9_TLOCK, "dbdqqds", fid->fid, flock->type, in p9_client_lock_dotl() 2196 flock->flags, flock->start, flock->length, in p9_client_lock_dotl() 2197 flock->proc_id, flock->client_id); in p9_client_lock_dotl()
|
/linux-4.4.14/include/uapi/asm-generic/ |
D | fcntl.h | 195 struct flock { struct
|
/linux-4.4.14/arch/um/os-Linux/ |
D | file.c | 555 struct flock lock = ((struct flock) { .l_type = type, in os_lock_file()
|
/linux-4.4.14/include/net/9p/ |
D | client.h | 257 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status);
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | file.c | 2660 ldlm_policy_data_t flock = { {0} }; in ll_file_flock() local 2675 flock.l_flock.owner = (unsigned long)file_lock->fl_owner; in ll_file_flock() 2676 flock.l_flock.pid = file_lock->fl_pid; in ll_file_flock() 2677 flock.l_flock.start = file_lock->fl_start; in ll_file_flock() 2678 flock.l_flock.end = file_lock->fl_end; in ll_file_flock() 2688 flock.l_flock.owner = (unsigned long)file_lock->fl_pid; in ll_file_flock() 2747 inode->i_ino, flock.l_flock.pid, flags, einfo.ei_mode, in ll_file_flock() 2748 flock.l_flock.start, flock.l_flock.end); in ll_file_flock() 2751 op_data, &lockh, &flock, 0, NULL /* req */, flags); in ll_file_flock() 2760 op_data, &lockh, &flock, 0, NULL /* req */, flags); in ll_file_flock() [all …]
|
/linux-4.4.14/Documentation/DocBook/ |
D | filesystems.xml.db | 91 API-flock-lock-inode-wait 92 API-sys-flock
|
/linux-4.4.14/fs/nfs/ |
D | nfs4file.c | 337 .flock = nfs_flock,
|
D | file.c | 910 .flock = nfs_flock,
|
/linux-4.4.14/fs/fuse/ |
D | file.c | 258 if (ff->flock) { in fuse_release_common() 2098 int flock, struct fuse_lk_in *inarg) in fuse_lk_fill() argument 2111 if (flock) in fuse_lk_fill() 2140 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) in fuse_setlk() argument 2159 fuse_lk_fill(&args, file, fl, opcode, pid, flock, &inarg); in fuse_setlk() 2204 ff->flock = true; in fuse_file_flock() 2966 .flock = fuse_file_flock, 2984 .flock = fuse_file_flock,
|
D | fuse_i.h | 160 bool flock:1; member
|
/linux-4.4.14/include/linux/ |
D | fs.h | 1031 extern int fcntl_getlk(struct file *, unsigned int, struct flock __user *); 1033 struct flock __user *); 1071 struct flock __user *user) in fcntl_getlk() 1077 unsigned int cmd, struct flock __user *user) in fcntl_setlk() 1632 int (*flock) (struct file *, int, struct file_lock *); member
|
/linux-4.4.14/arch/parisc/kernel/ |
D | syscall_table.S | 229 ENTRY_SAME(flock)
|
/linux-4.4.14/fs/gfs2/ |
D | file.c | 1116 .flock = gfs2_flock, 1130 .flock = gfs2_flock,
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | systbl.h | 150 SYSCALL_SPU(flock)
|
/linux-4.4.14/fs/ocfs2/ |
D | file.c | 2624 .flock = ocfs2_flock, 2642 .flock = ocfs2_flock, 2669 .flock = ocfs2_flock, 2686 .flock = ocfs2_flock,
|
/linux-4.4.14/tools/hv/ |
D | hv_kvp_daemon.c | 123 struct flock fl = {F_WRLCK, SEEK_SET, 0, 0, 0}; in kvp_acquire_lock() 135 struct flock fl = {F_UNLCK, SEEK_SET, 0, 0, 0}; in kvp_release_lock()
|
/linux-4.4.14/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 82 73 common flock sys_flock
|
D | syscall_32.tbl | 152 143 i386 flock sys_flock
|
/linux-4.4.14/fs/ceph/ |
D | mds_client.c | 51 bool flock; member 2829 if (recon_state->flock) { in encode_caps_cb() 2850 if (recon_state->flock) { in encode_caps_cb() 2975 recon_state.flock = session->s_con.peer_features & CEPH_FEATURE_FLOCK; in send_mds_reconnect() 3004 if (recon_state.flock) in send_mds_reconnect()
|
D | file.c | 1435 .flock = ceph_flock,
|
/linux-4.4.14/ |
D | MAINTAINERS | 4324 FILE LOCKING (flock() and fcntl()/lockf())
|