/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 | 170 .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 D | debugfs_target_ids_read_before_terminate_race.c |
|
/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() 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 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() 147 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 | 56 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 D | iommufd_fail_nth.c | 98 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 D | workload_hint_test.c | 33 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 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()
|
/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/cachestat/ |
H A D | test_cachestat.c | 216 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 D | hugetlb_dio.c | 43 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 D | gup_test.c | 207 filed = open(file, O_RDWR|O_CREAT, 0664); in main() 215 gup_fd = open(GUP_TEST_FILE, O_RDWR); in main()
|
H A D | compaction_test.c | 101 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 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
|
H 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/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/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
|
/linux/tools/testing/selftests/mount/ |
H A D | nosymfollow-test.c | 119 data = creat(DATA, O_RDWR); in setup_symlink() 135 link = open(LINK, 0, O_RDWR); in test_link_traversal()
|
/linux/tools/hv/ |
H A D | hv_fcopy_daemon.c |
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | mock_drm.h | 37 return mock_drm_getfile(i915->drm.primary, O_RDWR); in mock_file()
|
/linux/tools/testing/selftests/ia64/ |
H A D | aliasing-test.c | 30 fd = open(path, O_RDWR); in map_mem() 124 fd = open(path, O_RDWR); in read_rom()
|