Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 40 of 40) sorted by relevance

/linux-4.4.14/fs/
Dlocks.c461 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 …]
Dcompat.c350 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()
Dfcntl.c273 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()
DKconfig73 for filesystems like NFS and for the flock() system
/linux-4.4.14/fs/9p/
Dvfs_file.c152 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/
Dlocks.txt14 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
Dmandatory-locking.txt32 processes. File locks are applied using the flock() and fcntl() system calls
120 locks using flock() never result in a mandatory lock.
Docfs2.txt80 localflocks This disables cluster aware flock.
D00-INDEX91 - info on file locking implementations, flock() vs. fcntl(), etc.
DLocking351 [1]: ->fl_release_private for flock or POSIX locks is currently allowed
458 int (*flock) (struct file *, int, struct file_lock *);
Dvfs.txt827 int (*flock) (struct file *, int, struct file_lock *);
891 flock: called by the flock(2) system call
/linux-4.4.14/fs/cifs/
Dfile.c897 __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 …]
Dsmb2file.c110 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()
Dsmb2proto.h96 struct file_lock *flock, const unsigned int xid);
Dcifsproto.h138 struct file_lock *flock, const unsigned int xid);
/linux-4.4.14/drivers/staging/lustre/
DREADME.txt41 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/
Dfcntl.h63 struct flock { struct
/linux-4.4.14/fs/afs/
DMakefile14 flock.o \
Dfile.c40 .flock = afs_flock,
/linux-4.4.14/net/9p/
Dclient.c2182 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/
Dfcntl.h195 struct flock { struct
/linux-4.4.14/arch/um/os-Linux/
Dfile.c555 struct flock lock = ((struct flock) { .l_type = type, in os_lock_file()
/linux-4.4.14/include/net/9p/
Dclient.h257 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status);
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dfile.c2660 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/
Dfilesystems.xml.db91 API-flock-lock-inode-wait
92 API-sys-flock
/linux-4.4.14/fs/nfs/
Dnfs4file.c337 .flock = nfs_flock,
Dfile.c910 .flock = nfs_flock,
/linux-4.4.14/fs/fuse/
Dfile.c258 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,
Dfuse_i.h160 bool flock:1; member
/linux-4.4.14/include/linux/
Dfs.h1031 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/
Dsyscall_table.S229 ENTRY_SAME(flock)
/linux-4.4.14/fs/gfs2/
Dfile.c1116 .flock = gfs2_flock,
1130 .flock = gfs2_flock,
/linux-4.4.14/arch/powerpc/include/asm/
Dsystbl.h150 SYSCALL_SPU(flock)
/linux-4.4.14/fs/ocfs2/
Dfile.c2624 .flock = ocfs2_flock,
2642 .flock = ocfs2_flock,
2669 .flock = ocfs2_flock,
2686 .flock = ocfs2_flock,
/linux-4.4.14/tools/hv/
Dhv_kvp_daemon.c123 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/
Dsyscall_64.tbl82 73 common flock sys_flock
Dsyscall_32.tbl152 143 i386 flock sys_flock
/linux-4.4.14/fs/ceph/
Dmds_client.c51 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()
Dfile.c1435 .flock = ceph_flock,
/linux-4.4.14/
DMAINTAINERS4324 FILE LOCKING (flock() and fcntl()/lockf())