Home
last modified time | relevance | path

Searched refs:O_RDWR (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/linux/tools/testing/selftests/liveupdate/
H A Dliveupdate.c61 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
80 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
86 self->fd2 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
115 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
140 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
182 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
217 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
265 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
330 self->fd1 = open(LIVEUPDATE_DEV, O_RDWR); in TEST_F()
338 unsupported_fd = open("/dev/null", O_RDWR); in TEST_F()
/linux/tools/testing/selftests/filesystems/eventfd/
H A Deventfd_test.c54 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 Dopenat2_test.c170 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
172 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
183 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
203 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
212 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
215 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
232 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
/linux/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c33 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR); in workload_hint_exit()
71 fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR); in main()
93 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR); in main()
/linux/tools/testing/selftests/user_events/
H A Ddyn_test.c26 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 Dabi_test.c87 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()
140 int fd = open(data_file, O_RDWR); in reg_enable_multi()
171 int fd = open(data_file, O_RDWR); in reg_enable_flags()
199 int fd = open(data_file, O_RDWR); in reg_disable()
H A Dftrace_test.c132 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 Dpid_max.c57 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_cb()
103 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_inner()
178 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_outer()
247 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_limit_inner()
304 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_limit_outer()
/linux/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c51 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()
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c98 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 Dpci_endpoint_test.c41 self->fd = open(test_device, O_RDWR); in FIXTURE_SETUP()
80 self->fd = open(test_device, O_RDWR); in FIXTURE_SETUP()
155 self->fd = open(test_device, O_RDWR); in FIXTURE_SETUP()
244 self->fd = open(test_device, O_RDWR); in FIXTURE_SETUP()
/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c235 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 Dpower_floor_test.c22 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 Dhugetlb_dio.c43 fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT, 0664); in run_dio_using_hugetlb()
98 fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT, 0664); in main()
H A Dksm_functional_tests.c502 ksm_fd = open("/sys/kernel/mm/ksm/run", O_RDWR); in start_ksmd_and_set_frequency()
522 ksm_fd = open("/sys/kernel/mm/ksm/run", O_RDWR); in stop_ksmd_and_restore_frequency()
697 mem_fd = open("/proc/self/mem", O_RDWR); in init_global_file_handles()
710 pages_to_scan_fd = open("/sys/kernel/mm/ksm/pages_to_scan", O_RDWR); in init_global_file_handles()
713 sleep_millisecs_fd = open("/sys/kernel/mm/ksm/sleep_millisecs", O_RDWR); in init_global_file_handles()
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_inq_client.pkt11 +0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
12 +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
H A Dtcp_zerocopy_fastopen-client.pkt17 +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 Dkcmp_test.c42 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 Dvfio_iommufd_setup_test.c70 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 Dpapr_sysparm.c73 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 Dkthread.c63 (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 Dca-fopen.rst39 - - ``O_RDWR``
59 Only one user can open the CA Device in ``O_RDWR`` mode. All other
/linux/drivers/gpu/drm/i915/selftests/
H A Dmock_drm.h37 return mock_drm_getfile(i915->drm.primary, O_RDWR); in mock_file()
/linux/tools/testing/selftests/mount/
H A Dnosymfollow-test.c119 data = creat(DATA, O_RDWR); in setup_symlink()
135 link = open(LINK, 0, O_RDWR); in test_link_traversal()
/linux/tools/hv/
H A Dhv_fcopy_daemon.c

12345678910>>...14