| /linux/tools/testing/selftests/core/ |
| A D | close_range_test.c | 417 flags = fcntl(fd1, F_GETFD); in TEST() 421 flags = fcntl(fd2, F_GETFD); in TEST() 441 flags = fcntl(fd3, F_GETFD); in TEST() 456 flags = fcntl(fd1, F_GETFD); in TEST() 460 flags = fcntl(fd2, F_GETFD); in TEST() 485 flags = fcntl(fd3, F_GETFD); in TEST() 540 flags = fcntl(fd1, F_GETFD); in TEST() 544 flags = fcntl(fd2, F_GETFD); in TEST() 576 flags = fcntl(fd1, F_GETFD); in TEST() 580 flags = fcntl(fd2, F_GETFD); in TEST() [all …]
|
| /linux/arch/um/os-Linux/ |
| A D | file.c | 207 if (flags.cl && fcntl(fd, F_SETFD, 1)) { in os_open_file() 419 flags = fcntl(fd, F_GETFL); in os_set_fd_async() 424 if (fcntl(fd, F_SETFL, flags) < 0) { in os_set_fd_async() 431 if ((fcntl(fd, F_SETSIG, SIGIO) < 0) || in os_set_fd_async() 432 (fcntl(fd, F_SETOWN, os_getpid()) < 0)) { in os_set_fd_async() 446 flags = fcntl(fd, F_GETFL); in os_clear_fd_async() 451 if (fcntl(fd, F_SETFL, flags) < 0) in os_clear_fd_async() 460 flags = fcntl(fd, F_GETFL); in os_set_fd_block() 469 if (fcntl(fd, F_SETFL, flags) < 0) in os_set_fd_block() 604 err = fcntl(fd, F_SETLK, &lock); in os_lock_file() [all …]
|
| A D | sigio.c | 433 flags = fcntl(master, F_GETFL); in async_pty() 437 if ((fcntl(master, F_SETFL, flags | O_NONBLOCK | O_ASYNC) < 0) || in async_pty() 438 (fcntl(master, F_SETOWN, os_getpid()) < 0)) in async_pty() 441 if ((fcntl(slave, F_SETFL, flags | O_NONBLOCK) < 0)) in async_pty()
|
| /linux/tools/testing/selftests/filesystems/eventfd/ |
| A D | eventfd_test.c | 52 flags = fcntl(fd, F_GETFL); in TEST() 66 flags = fcntl(fd, F_GETFD); in TEST() 80 flags = fcntl(fd, F_GETFL); in TEST() 95 flags = fcntl(fd, F_GETFL); in TEST() 100 flags = fcntl(fd, F_GETFD); in TEST() 174 ret = fcntl(fd, F_GETFL); in TEST()
|
| /linux/Documentation/filesystems/ |
| A D | locks.rst | 34 installations use fcntl() instead of flock(). This is true of Slackware 3.0 37 file with fcntl() at the same time as the GDBM routines tried to lock this 46 is to make flock() and fcntl() locks oblivious to each other. Both can 53 cooperative flock()/fcntl() are those that emulate flock() using 54 fcntl(), with all the problems that implies.
|
| A D | dnotify.rst | 12 on a directory using a fcntl(2) call and the notifications themselves 33 information. However, if the F_SETSIG fcntl(2) call is used to let the 66 disabled, fcntl(fd, F_NOTIFY, ...) will return -EINVAL.
|
| /linux/tools/perf/tests/ |
| A D | bp_signal_overflow.c | 109 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow() 110 fcntl(fd, F_SETSIG, SIGIO); in test__bp_signal_overflow() 111 fcntl(fd, F_SETOWN, getpid()); in test__bp_signal_overflow()
|
| A D | bp_signal.c | 132 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in __event() 133 fcntl(fd, F_SETSIG, sig); in __event() 134 fcntl(fd, F_SETOWN, getpid()); in __event()
|
| /linux/tools/testing/selftests/memfd/ |
| A D | fuse_test.c | 68 r = fcntl(fd, F_GET_SEALS); in mfd_assert_get_seals() 95 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals() 108 r = fcntl(fd, F_GET_SEALS); in mfd_busy_add_seals() 114 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
|
| /linux/tools/testing/selftests/perf_events/ |
| A D | watermark_signal.c | 91 if (fcntl(fd, F_SETFL, FASYNC)) { in TEST() 96 if (fcntl(fd, F_SETOWN, getpid())) { in TEST() 101 if (fcntl(fd, F_SETSIG, SIGIO)) { in TEST()
|
| /linux/tools/testing/selftests/filesystems/ |
| A D | dnotify_test.c | 27 fcntl(fd, F_SETSIG, SIGRTMIN + 1); in main() 28 fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT); in main()
|
| /linux/tools/testing/selftests/hid/tests/ |
| A D | base_device.py | 21 import fcntl 259 flag = fcntl.fcntl(fd, fcntl.F_GETFD) 260 fcntl.fcntl(fd, fcntl.F_SETFL, flag | os.O_NONBLOCK)
|
| /linux/tools/crypto/ccp/ |
| A D | test_dbc.py | 7 import fcntl 84 fcntl.ioctl(self.d, INVALID1, self.data, True) 93 fcntl.ioctl(self.d, INVALID2, self.data, True) 102 fcntl.ioctl(self.d, INVALID3, self.data, True) 110 fcntl.ioctl(self.d, INVALID4, self.data, True) 118 fcntl.ioctl(self.d, INVALID5, self.data, True)
|
| /linux/samples/timers/ |
| A D | hpet_example.c | 251 if ((fcntl(fd, F_SETOWN, getpid()) == 1) || in hpet_fasync() 252 ((value = fcntl(fd, F_GETFL)) == 1) || in hpet_fasync() 253 (fcntl(fd, F_SETFL, value | O_ASYNC) == 1)) { in hpet_fasync()
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | mcdi_port_common.c | 283 u32 speed, u32 flags, u32 fcntl) in efx_mcdi_phy_decode_link() argument 285 switch (fcntl) { in efx_mcdi_phy_decode_link() 1098 u32 fcntl; in efx_mcdi_set_mac() local 1115 fcntl = MC_CMD_FCNTL_BIDIR; in efx_mcdi_set_mac() 1118 fcntl = MC_CMD_FCNTL_RESPOND; in efx_mcdi_set_mac() 1121 fcntl = MC_CMD_FCNTL_OFF; in efx_mcdi_set_mac() 1125 fcntl = MC_CMD_FCNTL_AUTO; in efx_mcdi_set_mac() 1127 fcntl = MC_CMD_FCNTL_OFF; in efx_mcdi_set_mac() 1129 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_FCNTL, fcntl); in efx_mcdi_set_mac() 1280 u32 flags, fcntl, speed, lpa; in efx_mcdi_process_link_change() local [all …]
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| A D | mcdi_port_common.c | 284 u32 speed, u32 flags, u32 fcntl) in efx_mcdi_phy_decode_link() argument 286 switch (fcntl) { in efx_mcdi_phy_decode_link() 1104 u32 fcntl; in efx_siena_mcdi_set_mac() local 1126 fcntl = MC_CMD_FCNTL_BIDIR; in efx_siena_mcdi_set_mac() 1129 fcntl = MC_CMD_FCNTL_RESPOND; in efx_siena_mcdi_set_mac() 1132 fcntl = MC_CMD_FCNTL_OFF; in efx_siena_mcdi_set_mac() 1136 fcntl = MC_CMD_FCNTL_AUTO; in efx_siena_mcdi_set_mac() 1138 fcntl = MC_CMD_FCNTL_OFF; in efx_siena_mcdi_set_mac() 1140 MCDI_SET_DWORD(cmdbytes, SET_MAC_IN_FCNTL, fcntl); in efx_siena_mcdi_set_mac() 1263 u32 flags, fcntl, speed, lpa; in efx_siena_mcdi_process_link_change() local [all …]
|
| /linux/tools/testing/selftests/filelock/ |
| A D | ofdlocks.c | 17 ret = fcntl(fd, F_OFD_SETLK, fl); in lock_set() 29 ret = fcntl(fd, F_OFD_GETLK, fl); in lock_get()
|
| /linux/tools/testing/selftests/net/packetdrill/ |
| A D | tcp_inq_client.pkt | 8 +0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) 9 +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
|
| A D | tcp_zerocopy_fastopen-client.pkt | 15 +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 36 +0 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
|
| /linux/tools/testing/selftests/tpm2/ |
| A D | tpm2.py | 9 import fcntl 369 flags = fcntl.fcntl(self.tpm, fcntl.F_GETFL) 371 fcntl.fcntl(self.tpm, fcntl.F_SETFL, flags)
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | perf_skip.c | 85 err = fcntl(perf_fd, F_SETFL, O_ASYNC); in serial_test_perf_skip() 91 err = fcntl(perf_fd, F_SETOWN_EX, &owner); in serial_test_perf_skip()
|
| /linux/Documentation/userspace-api/media/dvb/ |
| A D | frontend_f_open.rst | 20 #include <fcntl.h> 63 versa) using the F_SETFL command of the fcntl system call. This is a 64 standard system call, documented in the Linux manual page for fcntl.
|
| A D | ca-fopen.rst | 57 using the ``F_SETFL`` command of the ``fcntl`` system call. This is a 58 standard system call, documented in the Linux manual page for fcntl.
|
| /linux/tools/perf/trace/beauty/ |
| A D | fs_at_flags.sh | 10 linux_fcntl=${beauty_uapi_linux_dir}/fcntl.h
|
| /linux/tools/testing/selftests/drivers/dma-buf/ |
| A D | udmabuf.c | 42 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in create_memfd_with_seals() 157 ret = fcntl(memfd, F_ADD_SEALS, F_SEAL_SHRINK); in main()
|