/openbmc/linux/fs/ |
H A D | fcntl.c | 319 struct flock flock; in do_fcntl() local 347 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 350 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in do_fcntl() 361 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 468 struct flock64 flock; in SYSCALL_DEFINE3() local 487 if (copy_from_user(&flock, argp, sizeof(flock))) in SYSCALL_DEFINE3() 490 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in SYSCALL_DEFINE3() 498 if (copy_from_user(&flock, argp, sizeof(flock))) in SYSCALL_DEFINE3() 592 static int fixup_compat_flock(struct flock *flock) in fixup_compat_flock() argument 597 flock->l_len = COMPAT_OFF_T_MAX; in fixup_compat_flock() [all …]
|
H A D | locks.c | 506 struct flock *l) in flock_to_posix_lock() 2173 static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl) in posix_lock_to_flock() argument 2189 flock->l_whence = 0; in posix_lock_to_flock() 2201 flock->l_whence = 0; in posix_lock_to_flock64() 2209 int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock *flock) in fcntl_getlk() argument 2228 if (flock->l_pid != 0) in fcntl_getlk() 2336 struct flock *flock) in fcntl_setlk() argument 2361 if (flock->l_pid != 0) in fcntl_setlk() 2370 if (flock->l_pid != 0) in fcntl_setlk() 2436 if (flock->l_pid != 0) in fcntl_getlk64() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/util-linux/util-linux/ |
H A D | mit-license.patch | 4 Subject: [PATCH] README.licensing/flock: Add MIT license mention 6 Looking at the license text, flock.c is under the MIT license (see 18 sys-utils/flock.c | 4 +++- 34 diff --git a/sys-utils/flock.c b/sys-utils/flock.c 36 --- a/sys-utils/flock.c 37 +++ b/sys-utils/flock.c
|
/openbmc/linux/fs/9p/ |
H A D | vfs_file.c | 120 struct p9_flock flock; in v9fs_file_do_lock() local 137 memset(&flock, 0, sizeof(flock)); in v9fs_file_do_lock() 141 flock.type = P9_LOCK_TYPE_RDLCK; in v9fs_file_do_lock() 144 flock.type = P9_LOCK_TYPE_WRLCK; in v9fs_file_do_lock() 147 flock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_do_lock() 150 flock.start = fl->fl_start; in v9fs_file_do_lock() 152 flock.length = 0; in v9fs_file_do_lock() 155 flock.proc_id = fl->fl_pid; in v9fs_file_do_lock() 183 kfree(flock.client_id); in v9fs_file_do_lock() 218 kfree(flock.client_id); in v9fs_file_do_lock() [all …]
|
/openbmc/linux/Documentation/filesystems/ |
H A D | locks.rst | 18 The old flock(2) emulation in the kernel was swapped for proper BSD 19 compatible flock(2) support in the 1.3.x series of kernels. With the 33 Because sendmail was unable to use the old flock() emulation, many sendmail 34 installations use fcntl() instead of flock(). This is true of Slackware 3.0 38 file with flock(). With pre 1.3.96 kernels this could result in deadlocks that, 46 is to make flock() and fcntl() locks oblivious to each other. Both can 53 cooperative flock()/fcntl() are those that emulate flock() using
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/ |
H A D | mori-fw.sh | 21 flock -x 200 47 flock -x 200 75 flock -x 200 124 flock -x 200
|
/openbmc/libpldm/src/requester/ |
H A D | instance-id.c | 106 static const struct flock cfls = { in pldm_instance_id_alloc() 111 static const struct flock cflx = { in pldm_instance_id_alloc() 128 struct flock flop; in pldm_instance_id_alloc() 195 static const struct flock cflu = { in pldm_instance_id_free() 200 struct flock flop; in pldm_instance_id_free()
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/ |
H A D | 0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch | 28 - * use the flock64 struct rather than unsuffixed flock 30 + * use the flock struct rather than unsuffixed flock 130 +typedef abi_long from_flock_fn(struct flock *fl, abi_ulong target_addr); 131 +typedef abi_long to_flock_fn(abi_ulong target_addr, const struct flock *fl); 144 +static inline abi_long copy_from_user_oabi_flock(struct flock *fl, 159 + const struct flock *fl) 171 +static inline abi_long copy_from_user_flock(struct flock *fl, 186 + const struct flock *fl) 198 + struct flock fl64; 323 + struct flock fl;
|
/openbmc/linux/fs/smb/client/ |
H A D | file.c | 1421 flock->fl_type = F_UNLCK; in cifs_lock_test() 1640 struct file_lock *flock; in cifs_push_posix_locks() local 1687 if (flock->fl_type == F_RDLCK || flock->fl_type == F_SHLCK) in cifs_push_posix_locks() 1771 if (flock->fl_flags & in cifs_read_flock() 1827 flock->fl_start, length, flock, in cifs_getlk() 1833 rc = cifs_lock_test(cfile, flock->fl_start, length, type, flock); in cifs_getlk() 1843 flock->fl_type = F_UNLCK; in cifs_getlk() 1851 flock->fl_type = F_WRLCK; in cifs_getlk() 1863 flock->fl_type = F_RDLCK; in cifs_getlk() 2085 if ((flock->fl_flags & FL_POSIX) || (flock->fl_flags & FL_FLOCK)) { in cifs_setlk() [all …]
|
H A D | smb2file.c | 189 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 198 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 222 if (flock->fl_start > li->offset || in smb2_unlock_range() 223 (flock->fl_start + length) < in smb2_unlock_range() 231 if (!(flock->fl_flags & (FL_FLOCK | FL_OFDLCK))) in smb2_unlock_range()
|
/openbmc/openbmc/poky/meta/classes/ |
H A D | useradd_base.bbclass | 13 # *) Invoke the actual command with flock 26 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupadd \$opts\" || true 43 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO useradd \$opts\" || true 62 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupmems \$opts\" || true 86 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupdel \$opts\" || true 106 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO userdel \$opts\" || true 126 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO groupmod \$opts\" 145 eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO usermod \$opts\" 163 …eval flock -x $rootdir${sysconfdir} -c \"$PSEUDO sed --follow-symlinks -i \''s/^\('$username':[^:]…
|
H A D | migrate_localcount.bbclass | 44 flock = bb.utils.lockfile("%s.lock" % df) 48 bb.utils.unlockfile(flock)
|
/openbmc/linux/tools/testing/selftests/filelock/ |
H A D | ofdlocks.c | 11 static int lock_set(int fd, struct flock *fl) in lock_set() 23 static int lock_get(int fd, struct flock *fl) in lock_get() 38 struct flock fl, fl2; in main()
|
/openbmc/openbmc-build-scripts/ |
H A D | build-setup.sh | 322 flock \${lock} git config --global core.gitProxy ${WORKSPACE}/bin/git-proxy 323 flock \${lock} git config --global http.proxy ${http_proxy} 325 flock \${lock} mkdir -p ~/.subversion 326 flock \${lock} cat > ~/.subversion/servers << EOF_SVN 332 flock \${lock} cat > ~/.wgetrc << EOF_WGETRC 338 flock \${lock} cat > ~/.curlrc << EOF_CURLRC
|
/openbmc/linux/tools/testing/selftests/powerpc/nx-gzip/include/ |
H A D | nx_dbg.h | 34 flock(nx_gzip_log->_fileno, LOCK_EX); \ 42 flock(nx_gzip_log->_fileno, LOCK_UN); \
|
/openbmc/linux/arch/arm/kernel/ |
H A D | sys_oabi-compat.c | 239 struct flock64 flock; in sys_oabi_fcntl64() local 251 err = get_oabi_flock(&flock, argp); in sys_oabi_fcntl64() 254 err = fcntl_getlk64(f.file, cmd, &flock); in sys_oabi_fcntl64() 256 err = put_oabi_flock(&flock, argp); in sys_oabi_fcntl64() 265 err = get_oabi_flock(&flock, argp); in sys_oabi_fcntl64() 268 err = fcntl_setlk64(fd, f.file, cmd, &flock); in sys_oabi_fcntl64()
|
/openbmc/linux/fs/smb/server/ |
H A D | vfs.h | 141 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock); 142 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout); 143 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock);
|
H A D | vfs.c | 332 struct file_lock *flock; in check_lock_range() local 340 list_for_each_entry(flock, &ctx->flc_posix, fl_list) { in check_lock_range() 342 if (flock->fl_end >= start && end >= flock->fl_start) { in check_lock_range() 343 if (flock->fl_type == F_RDLCK) { in check_lock_range() 349 } else if (flock->fl_type == F_WRLCK) { in check_lock_range() 351 if (flock->fl_file != filp) { in check_lock_range() 1851 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock) in ksmbd_vfs_posix_lock_wait() argument 1853 wait_event(flock->fl_wait, !flock->fl_blocker); in ksmbd_vfs_posix_lock_wait() 1858 return wait_event_interruptible_timeout(flock->fl_wait, in ksmbd_vfs_posix_lock_wait_timeout() 1859 !flock->fl_blocker, in ksmbd_vfs_posix_lock_wait_timeout() [all …]
|
/openbmc/linux/include/linux/ |
H A D | filelock.h | 137 int fcntl_getlk(struct file *, unsigned int, struct flock *); 139 struct flock *); 192 struct flock __user *user) in fcntl_getlk() 198 unsigned int cmd, struct flock __user *user) in fcntl_setlk()
|
/openbmc/linux/tools/testing/selftests/wireguard/qemu/ |
H A D | Makefile | 37 …flock -x $$@.lock -c '[ -f $$@ ] && exit 0; wget -O $$@.tmp $(MIRROR)$(1) || wget -O $$@.tmp $(2)$… 354 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 364 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 377 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 391 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 401 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 411 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 426 flock -s $<.lock tar -C $(BUILD_PATH) -xf $< 437 flock -s $<.lock tar -C $(BUILD_PATH) -xf $<
|
/openbmc/u-boot/tools/env/ |
H A D | fw_env_main.c | 258 if (-1 == flock(lockfd, LOCK_EX)) { in main() 280 flock(lockfd, LOCK_UN); in main()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | fc.c | 85 spinlock_t flock; member 652 spin_lock_init(&fod->flock); in nvmet_fc_prep_fcp_iodlist() 899 spin_lock(&fod->flock); in nvmet_fc_delete_target_queue() 908 spin_unlock(&fod->flock); in nvmet_fc_delete_target_queue() 912 spin_unlock(&fod->flock); in nvmet_fc_delete_target_queue() 2315 spin_lock_irqsave(&fod->flock, flags); in nvmet_fc_transfer_fcp_data() 2358 spin_lock_irqsave(&fod->flock, flags); in nvmet_fc_fod_op_done() 2370 spin_lock_irqsave(&fod->flock, flags); in nvmet_fc_fod_op_done() 2461 spin_lock_irqsave(&fod->flock, flags); in __nvmet_fc_fcp_nvme_cmd_done() 2788 spin_lock(&fod->flock); in nvmet_fc_rcv_fcp_abort() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | Makefile | 16 flock.o \
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A D | Build | 3 perf-y += flock.o
|
/openbmc/qemu/util/ |
H A D | osdep.c | 195 struct flock fl = { in qemu_probe_lock_ops() 240 struct flock fl = { in qemu_lock_fcntl() 264 struct flock fl = { in qemu_lock_fd_test()
|