/openbmc/linux/fs/ |
H A D | fcntl.c | 313 struct flock flock; in do_fcntl() local 341 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 343 err = fcntl_getlk(filp, cmd, &flock); in do_fcntl() 344 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in do_fcntl() 355 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 357 err = fcntl_setlk(fd, filp, cmd, &flock); in do_fcntl() 462 struct flock64 flock; in SYSCALL_DEFINE3() local 481 if (copy_from_user(&flock, argp, sizeof(flock))) in SYSCALL_DEFINE3() 483 err = fcntl_getlk64(f.file, cmd, &flock); in SYSCALL_DEFINE3() 484 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in SYSCALL_DEFINE3() [all …]
|
H A D | locks.c | 506 struct flock *l) in flock_to_posix_lock() 2069 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument 2110 if (f.file->f_op->flock) in SYSCALL_DEFINE2() 2111 error = f.file->f_op->flock(f.file, in SYSCALL_DEFINE2() 2173 static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl) in posix_lock_to_flock() argument 2175 flock->l_pid = locks_translate_pid(fl, task_active_pid_ns(current)); in posix_lock_to_flock() 2186 flock->l_start = fl->fl_start; in posix_lock_to_flock() 2187 flock->l_len = fl->fl_end == OFFSET_MAX ? 0 : in posix_lock_to_flock() 2189 flock->l_whence = 0; in posix_lock_to_flock() 2190 flock->l_type = fl->fl_type; in posix_lock_to_flock() [all …]
|
/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() 154 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock() 155 flock.proc_id = fl->fl_pid; in v9fs_file_do_lock() 156 flock.client_id = fid->clnt->name; 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-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | chassis-powercycle | 61 flock -x 100 90 flock -x 200 149 flock -u 200 156 flock -u 200 162 flock -u 200
|
/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 | 101 static const struct flock pldm_instance_id_cfls = { 107 static const struct flock pldm_instance_id_cflx = { 113 static const struct flock pldm_instance_id_cflu = { 135 struct flock flop; in pldm_instance_id_alloc() 219 struct flock flop; in pldm_instance_id_free()
|
/openbmc/linux/fs/smb/client/ |
H A D | file.c | 1397 __u8 type, struct file_lock *flock) in cifs_lock_test() argument 1408 flock->fl_flags, &conf_lock, in cifs_lock_test() 1411 flock->fl_start = conf_lock->offset; in cifs_lock_test() 1412 flock->fl_end = conf_lock->offset + conf_lock->length - 1; in cifs_lock_test() 1413 flock->fl_pid = conf_lock->pid; in cifs_lock_test() 1415 flock->fl_type = F_RDLCK; in cifs_lock_test() 1417 flock->fl_type = F_WRLCK; in cifs_lock_test() 1421 flock->fl_type = F_UNLCK; in cifs_lock_test() 1493 cifs_posix_lock_test(struct file *file, struct file_lock *flock) in cifs_posix_lock_test() argument 1497 unsigned char saved_type = flock->fl_type; in cifs_posix_lock_test() [all …]
|
H A D | smb2file.c | 188 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 197 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 221 if (flock->fl_start > li->offset || in smb2_unlock_range() 222 (flock->fl_start + length) < in smb2_unlock_range() 230 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':[^:]…
|
/openbmc/openbmc-build-scripts/ |
H A D | build-setup.sh | 311 flock \${lock} git config --global core.gitProxy ${WORKSPACE}/bin/git-proxy 312 flock \${lock} git config --global http.proxy ${http_proxy} 314 flock \${lock} mkdir -p ~/.subversion 315 flock \${lock} cat > ~/.subversion/servers << EOF_SVN 321 flock \${lock} cat > ~/.wgetrc << EOF_WGETRC 327 flock \${lock} cat > ~/.curlrc << EOF_CURLRC
|
/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/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/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/fs/smb/server/ |
H A D | vfs.h | 142 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock); 143 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout); 144 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() 1849 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock) in ksmbd_vfs_posix_lock_wait() argument 1851 wait_event(flock->fl_wait, !flock->fl_blocker); in ksmbd_vfs_posix_lock_wait() 1854 int ksmbd_vfs_posix_lock_wait_timeout(struct file_lock *flock, long timeout) in ksmbd_vfs_posix_lock_wait_timeout() argument 1856 return wait_event_interruptible_timeout(flock->fl_wait, 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() 2317 spin_unlock_irqrestore(&fod->flock, flags); in nvmet_fc_transfer_fcp_data() 2358 spin_lock_irqsave(&fod->flock, flags); in nvmet_fc_fod_op_done() 2361 spin_unlock_irqrestore(&fod->flock, flags); in nvmet_fc_fod_op_done() 2370 spin_lock_irqsave(&fod->flock, flags); in nvmet_fc_fod_op_done() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | disable-i3c-hub | 32 flock -x 100
|
/openbmc/qemu/util/ |
H A D | osdep.c | 200 struct flock fl = { in qemu_probe_lock_ops() 245 struct flock fl = { in qemu_lock_fcntl() 269 struct flock fl = { in qemu_lock_fd_test()
|
/openbmc/linux/fs/afs/ |
H A D | Makefile | 16 flock.o \
|
/openbmc/linux/net/9p/ |
H A 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 2183 fid->fid, flock->type, flock->flags, flock->start, in p9_client_lock_dotl() 2184 flock->length, flock->proc_id, flock->client_id); in p9_client_lock_dotl() 2186 req = p9_client_rpc(clnt, P9_TLOCK, "dbdqqds", fid->fid, flock->type, in p9_client_lock_dotl() 2187 flock->flags, flock->start, flock->length, in p9_client_lock_dotl() 2188 flock->proc_id, flock->client_id); in p9_client_lock_dotl()
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A D | Build | 3 perf-y += flock.o
|