| /linux/tools/testing/selftests/liveupdate/ |
| H A D | liveupdate.c | 62 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 81 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 87 self->fd2 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 102 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in create_session() 127 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 155 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); 190 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 238 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 303 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F() 311 unsupported_fd = open("/dev/null", O_RDWR); in TEST_F() [all...] |
| /linux/tools/testing/selftests/filesystems/eventfd/ |
| H A D | eventfd_test.c | 54 EXPECT_EQ(flags, O_RDWR); in TEST() 83 EXPECT_EQ(flags & O_RDWR, O_RDWR); in TEST() 98 EXPECT_EQ(flags & O_RDWR, O_RDWR); in TEST() 176 EXPECT_EQ(ret & O_RDWR, O_RDWR); in TEST()
|
| /linux/tools/testing/selftests/openat2/ |
| H A D | openat2_test.c | |
| /linux/tools/testing/selftests/filesystems/openat2/ |
| H A D | openat2_test.c | 174 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in TEST_F() 176 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in TEST_F() 187 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in TEST_F() 207 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in TEST_F() 216 .how.flags = O_TMPFILE | O_RDWR, in TEST_F() 219 .how.flags = O_TMPFILE | O_RDWR, in TEST_F() 236 .how.flags = O_TMPFILE | O_RDWR, in TEST_F()
|
| /linux/tools/testing/selftests/filesystems/mount_cycle/ |
| H A D | loop_cycle_test.c | 314 lfd = open(dev, O_RDWR); in loop_clear() 390 cfd = open("/dev/loop-control", O_RDWR); in loop_bind_free() 398 lfd = open(dev, O_RDWR); in loop_bind_free() 463 ifd = open(img, O_RDWR | O_CREAT | O_EXCL, 0600); in loop_mount() 584 lfd = open(self->dev, O_RDWR); in assert_loop_released() 676 ifd = openat(tfd, "img", O_RDWR | O_CREAT | O_EXCL, 0600); in TEST_F() 807 ifd = open(img, O_RDWR); in loop_attach() 822 pfd = open(at("p/pipe"), O_RDWR); in holder_autofs() 849 fd = open(at("img/wb.img"), O_RDWR | O_CREAT | O_EXCL, 0600); in holder_zram() 865 fd = open("/dev/zram0", O_RDWR); in holder_zram() [all …]
|
| /linux/tools/testing/selftests/user_events/ |
| H A D | abi_test.c | 87 int fd = open(enable_file, O_RDWR); in event_exists() 99 int fd = open(enable_file, O_RDWR); in change_event() 122 int fd = open(data_file, O_RDWR); in event_delete() 167 int fd = open(data_file, O_RDWR); in reg_enable_multi() 198 int fd = open(data_file, O_RDWR); in reg_enable_flags() 226 int fd = open(data_file, O_RDWR); in reg_disable()
|
| H A D | dyn_test.c | 26 int fd = open(abi_file, O_RDWR); in event_delete() 85 int fd = open(dyn_file, O_RDWR | O_APPEND); in parse_dyn() 109 int fd = open(abi_file, O_RDWR); in parse_abi() 149 int fd = open(abi_file, O_RDWR); in check_match()
|
| H A D | ftrace_test.c | 132 fd = open(data_file, O_RDWR); in clear() 171 fd = open(data_file, O_RDWR); in check_print_fmt() 216 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP() 277 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 346 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 384 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 422 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 465 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
|
| /linux/tools/testing/selftests/pid_namespace/ |
| H A D | pid_max.c | 121 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_inner() 167 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_outer() 246 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_limit_inner() 322 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_limit_outer() 381 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY);
|
| /linux/tools/testing/selftests/thermal/intel/workload_hint/ |
| H A D | workload_hint_test.c | 37 fd = open(wlt_enable_attr, O_RDWR); in workload_hint_exit() 59 fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR); in main() 116 fd = open(wlt_enable_attr, O_RDWR); in main()
|
| /linux/tools/testing/selftests/dmabuf-heaps/ |
| H A D | dmabuf-heap.c | 51 fd = open(name, O_RDWR); in open_vgem() 99 fd = open(buf, O_RDWR); in dmabuf_heap_open() 130 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc() 297 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older() 329 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer() 385 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors() 462 req->fd_flags = O_RDWR | O_CLOEXEC; in test_alloc_no_fd_leak_on_efault()
|
| /linux/tools/testing/selftests/iommu/ |
| H A D | iommufd_fail_nth.c | 98 nth_state->proc_fd = open(buf, O_RDWR); in fail_nth_first() 247 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 315 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 351 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 388 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 433 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 512 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 568 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 641 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
|
| /linux/tools/testing/selftests/pci_endpoint/ |
| H A D | pci_endpoint_test.c | 41 self->fd = open(test_device, O_RDWR); in FIXTURE_SETUP() 103 self->fd = open(test_device, O_RDWR); in TEST_F() 178 self->fd = open(test_device, O_RDWR); in FIXTURE_VARIANT_ADD() 267 self->fd = open(test_device, O_RDWR);
|
| /linux/tools/testing/selftests/cachestat/ |
| H A D | test_cachestat.c | 235 fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in run_cachestat_test() 237 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0666); in run_cachestat_test() 330 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main() 338 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
|
| /linux/tools/testing/selftests/thermal/intel/power_floor/ |
| H A D | power_floor_test.c | 22 fd = open(POWER_FLOOR_ENABLE_ATTRIBUTE, O_RDWR); in power_floor_exit() 52 fd = open(POWER_FLOOR_ENABLE_ATTRIBUTE, O_RDWR); in main()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | hugetlb_dio.c | 142 fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT, 0664);
|
| H A D | ksm_functional_tests.c | 503 ksm_fd = open("/sys/kernel/mm/ksm/run", O_RDWR); in start_ksmd_and_set_frequency() 525 ksm_fd = open("/sys/kernel/mm/ksm/run", O_RDWR); in stop_ksmd_and_restore_frequency() 700 mem_fd = open("/proc/self/mem", O_RDWR); in init_global_file_handles() 713 pages_to_scan_fd = open("/sys/kernel/mm/ksm/pages_to_scan", O_RDWR); in init_global_file_handles() 716 sleep_millisecs_fd = open("/sys/kernel/mm/ksm/sleep_millisecs", O_RDWR); in init_global_file_handles()
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | fs_test.c | 911 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK() 945 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 948 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 973 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 979 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 985 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK() 996 /* dir_s1d3 should allow READ_FILE and WRITE_FILE (O_RDWR). */ in TEST_F_FORK() 1026 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 1032 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 1038 /* dir_s1d3 should allow READ_FILE and WRITE_FILE (O_RDWR) in TEST_F_FORK() [all...] |
| /linux/tools/testing/selftests/net/packetdrill/ |
| H A D | tcp_inq_client.pkt | 11 +0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) 12 +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
|
| H A D | tcp_zerocopy_fastopen-client.pkt | 17 +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 38 +0 fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
|
| /linux/tools/testing/selftests/kcmp/ |
| H A D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main() 94 fd2 = open(kpath, O_RDWR); in main()
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_iommufd_setup_test.c | 70 ASSERT_LE(0, (self->cdev_fd = open(cdev_path, O_RDWR, 0))); in FIXTURE_SETUP() 71 ASSERT_LE(0, (self->iommufd = open(iommu_dev_path, O_RDWR, 0))); in FIXTURE_SETUP()
|
| /linux/tools/testing/selftests/powerpc/papr_sysparm/ |
| H A D | papr_sysparm.c | 73 const int devfd = open(DEVPATH, O_RDWR); in check_efault_common() 104 const int devfd = open(DEVPATH, O_RDWR); in set_hmc0()
|
| /linux/fs/ecryptfs/ |
| H A D | kthread.c | 63 (O_RDWR | O_LARGEFILE), current_cred()); in ecryptfs_threadfn() 134 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open()
|
| /linux/Documentation/userspace-api/media/dvb/ |
| H A D | ca-fopen.rst | 39 - - ``O_RDWR`` 59 Only one user can open the CA Device in ``O_RDWR`` mode. All other
|