Home
last modified time | relevance | path

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

12345678910>>...12

/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/damon/
H A Ddebugfs_target_ids_read_before_terminate_race.c
/linux/tools/testing/selftests/user_events/
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 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()
147 int fd = open(abi_file, O_RDWR); in check_match()
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.c56 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_cb()
102 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_inner()
177 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()
303 fd = open("/proc/sys/kernel/pid_max", O_RDWR | O_CLOEXEC | O_NOCTTY); in pid_max_nested_limit_outer()
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c98 nth_state->proc_fd = open(buf, O_RDWR); in fail_nth_first()
241 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
309 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
345 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
382 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
427 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
506 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
562 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
633 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
/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()
73 fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR); in main()
95 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR); in main()
/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/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/cachestat/
H A Dtest_cachestat.c216 int fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in test_cachestat_shmem()
290 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main()
298 true, 4, O_CREAT | O_RDWR, 0600)) { 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 Dgup_test.c207 filed = open(file, O_RDWR|O_CREAT, 0664); in main()
215 gup_fd = open(GUP_TEST_FILE, O_RDWR); in main()
H A Dcompaction_test.c101 fd = open("/proc/sys/vm/nr_hugepages", O_RDWR | O_NONBLOCK); in check_compaction()
166 fd = open("/proc/sys/vm/nr_hugepages", O_RDWR | O_NONBLOCK); in set_zero_hugepages()
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_inq_client.pkt8 +0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
9 +0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
H A Dtcp_zerocopy_fastopen-client.pkt15 +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/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/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/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
/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/ia64/
H A Daliasing-test.c30 fd = open(path, O_RDWR); in map_mem()
124 fd = open(path, O_RDWR); in read_rom()

12345678910>>...12