/linux-4.1.27/fs/ |
D | locks.c | 457 struct flock *l) in flock_to_posix_lock() 1896 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument 1928 if (f.file->f_op->flock) in SYSCALL_DEFINE2() 1929 error = f.file->f_op->flock(f.file, in SYSCALL_DEFINE2() 1961 static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl) in posix_lock_to_flock() argument 1963 flock->l_pid = IS_OFDLCK(fl) ? -1 : fl->fl_pid; in posix_lock_to_flock() 1974 flock->l_start = fl->fl_start; in posix_lock_to_flock() 1975 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock() 1977 flock->l_whence = 0; in posix_lock_to_flock() 1978 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 | 70 for filesystems like NFS and for the flock() system
|
/linux-4.1.27/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.1.27/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 457 int (*flock) (struct file *, int, struct file_lock *);
|
D | vfs.txt | 824 int (*flock) (struct file *, int, struct file_lock *); 884 flock: called by the flock(2) system call
|
/linux-4.1.27/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 | 91 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 100 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 122 if (flock->fl_start > li->offset || in smb2_unlock_range() 123 (flock->fl_start + length) < in smb2_unlock_range()
|
D | smb2proto.h | 96 struct file_lock *flock, const unsigned int xid);
|
D | cifsproto.h | 140 struct file_lock *flock, const unsigned int xid);
|
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_flock.c | 179 struct ldlm_flock *flock; in ldlm_flock_deadlock() local 188 flock = &lock->l_policy_data.l_flock; in ldlm_flock_deadlock() 189 LASSERT(flock->owner == bl_owner); in ldlm_flock_deadlock() 190 bl_owner = flock->blocking_owner; in ldlm_flock_deadlock() 191 bl_exp_new = class_export_get(flock->blocking_export); in ldlm_flock_deadlock() 793 struct ldlm_flock *flock; in ldlm_export_flock_get() local 798 flock = &lock->l_policy_data.l_flock; in ldlm_export_flock_get() 799 LASSERT(flock->blocking_export != NULL); in ldlm_export_flock_get() 800 class_export_get(flock->blocking_export); in ldlm_export_flock_get() 801 flock->blocking_refs++; in ldlm_export_flock_get() [all …]
|
/linux-4.1.27/drivers/staging/lustre/ |
D | README.txt | 43 Enable local flock support, using only client-local flock 44 (faster, for applications that require flock but do not run 47 flock
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
D | fcntl.h | 63 struct flock { struct
|
/linux-4.1.27/fs/afs/ |
D | Makefile | 14 flock.o \
|
D | file.c | 40 .flock = afs_flock,
|
/linux-4.1.27/net/9p/ |
D | client.c | 2174 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status) in p9_client_lock_dotl() argument 2184 fid->fid, flock->type, flock->flags, flock->start, in p9_client_lock_dotl() 2185 flock->length, flock->proc_id, flock->client_id); in p9_client_lock_dotl() 2187 req = p9_client_rpc(clnt, P9_TLOCK, "dbdqqds", fid->fid, flock->type, in p9_client_lock_dotl() 2188 flock->flags, flock->start, flock->length, in p9_client_lock_dotl() 2189 flock->proc_id, flock->client_id); in p9_client_lock_dotl()
|
/linux-4.1.27/include/uapi/asm-generic/ |
D | fcntl.h | 195 struct flock { struct
|
/linux-4.1.27/fs/nfs/ |
D | nfs4file.c | 181 .flock = nfs_flock,
|
D | file.c | 941 .flock = nfs_flock,
|
/linux-4.1.27/arch/um/os-Linux/ |
D | file.c | 554 struct flock lock = ((struct flock) { .l_type = type, in os_lock_file()
|
/linux-4.1.27/include/net/9p/ |
D | client.h | 257 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status);
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | file.c | 2691 ldlm_policy_data_t flock = {{0}}; in ll_file_flock() local 2706 flock.l_flock.owner = (unsigned long)file_lock->fl_owner; in ll_file_flock() 2707 flock.l_flock.pid = file_lock->fl_pid; in ll_file_flock() 2708 flock.l_flock.start = file_lock->fl_start; in ll_file_flock() 2709 flock.l_flock.end = file_lock->fl_end; in ll_file_flock() 2719 flock.l_flock.owner = (unsigned long)file_lock->fl_pid; in ll_file_flock() 2778 inode->i_ino, flock.l_flock.pid, flags, einfo.ei_mode, in ll_file_flock() 2779 flock.l_flock.start, flock.l_flock.end); in ll_file_flock() 2782 op_data, &lockh, &flock, 0, NULL /* req */, flags); in ll_file_flock() 2795 op_data, &lockh, &flock, 0, NULL /* req */, flags); in ll_file_flock() [all …]
|
/linux-4.1.27/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.1.27/include/linux/ |
D | fs.h | 1015 extern int fcntl_getlk(struct file *, unsigned int, struct flock __user *); 1017 struct flock __user *); 1056 struct flock __user *user) in fcntl_getlk() 1062 unsigned int cmd, struct flock __user *user) in fcntl_setlk() 1612 int (*flock) (struct file *, int, struct file_lock *); member
|
/linux-4.1.27/arch/parisc/kernel/ |
D | syscall_table.S | 229 ENTRY_SAME(flock)
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | systbl.h | 150 SYSCALL_SPU(flock)
|
/linux-4.1.27/fs/gfs2/ |
D | file.c | 1116 .flock = gfs2_flock, 1130 .flock = gfs2_flock,
|
/linux-4.1.27/fs/ocfs2/ |
D | file.c | 2639 .flock = ocfs2_flock, 2657 .flock = ocfs2_flock, 2684 .flock = ocfs2_flock, 2701 .flock = ocfs2_flock,
|
/linux-4.1.27/tools/hv/ |
D | hv_kvp_daemon.c | 125 struct flock fl = {F_WRLCK, SEEK_SET, 0, 0, 0}; in kvp_acquire_lock() 137 struct flock fl = {F_UNLCK, SEEK_SET, 0, 0, 0}; in kvp_release_lock()
|
/linux-4.1.27/arch/s390/kernel/ |
D | compat_wrapper.c | 114 COMPAT_SYSCALL_WRAP2(flock, unsigned int, fd, unsigned int, cmd);
|
/linux-4.1.27/arch/x86/syscalls/ |
D | syscall_64.tbl | 82 73 common flock sys_flock
|
D | syscall_32.tbl | 152 143 i386 flock sys_flock
|
/linux-4.1.27/fs/ceph/ |
D | mds_client.c | 50 bool flock; member 2769 if (recon_state->flock) { in encode_caps_cb() 2790 if (recon_state->flock) { in encode_caps_cb() 2916 recon_state.flock = session->s_con.peer_features & CEPH_FEATURE_FLOCK; in send_mds_reconnect() 2945 if (recon_state.flock) in send_mds_reconnect()
|
D | file.c | 1337 .flock = ceph_flock,
|
/linux-4.1.27/ |
D | MAINTAINERS | 4005 FILE LOCKING (flock() and fcntl()/lockf())
|