| /Linux-v6.6/tools/testing/selftests/openat2/ |
| D | openat2_test.c | 169 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 171 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 182 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags() 202 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags() 211 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags() 214 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags() 231 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
|
| /Linux-v6.6/tools/testing/selftests/iommu/ |
| D | iommufd_fail_nth.c | 95 nth_state->proc_fd = open(buf, O_RDWR); in fail_nth_first() 238 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 306 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 343 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 388 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 467 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 523 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH() 587 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
|
| /Linux-v6.6/tools/testing/selftests/dmabuf-heaps/ |
| D | dmabuf-heap.c | 48 fd = open(name, O_RDWR); in open_vgem() 98 fd = open(buf, O_RDWR); in dmabuf_heap_open() 128 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc() 311 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older() 343 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer() 424 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
|
| /Linux-v6.6/tools/testing/selftests/user_events/ |
| 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() 271 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 338 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 376 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 414 self->enable_fd = open(enable_file, O_RDWR); in TEST_F() 457 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
|
| D | abi_test.c | 29 int fd = open(enable_file, O_RDWR); in change_event() 53 int fd = open(data_file, O_RDWR); in reg_enable() 75 int fd = open(data_file, O_RDWR); in reg_disable()
|
| D | dyn_test.c | 69 int fd = open(abi_file, O_RDWR); in parse() 95 int fd = open(abi_file, O_RDWR); in check_match()
|
| /Linux-v6.6/tools/testing/selftests/cachestat/ |
| D | test_cachestat.c | 215 int fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in test_cachestat_shmem() 289 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main() 297 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
|
| /Linux-v6.6/tools/testing/selftests/kcmp/ |
| D | kcmp_test.c | 42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main() 94 fd2 = open(kpath, O_RDWR, 0644); in main()
|
| /Linux-v6.6/tools/testing/selftests/landlock/ |
| D | fs_test.c | 804 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK() 841 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 844 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 872 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 878 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 884 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK() 928 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() 934 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK() 941 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK() 953 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK() [all …]
|
| /Linux-v6.6/fs/ecryptfs/ |
| 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-v6.6/Documentation/userspace-api/media/dvb/ |
| D | ca-fopen.rst | 39 - - ``O_RDWR`` 59 Only one user can open the CA Device in ``O_RDWR`` mode. All other
|
| /Linux-v6.6/tools/testing/selftests/mount/ |
| 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-v6.6/tools/hv/ |
| D | hv_fcopy_daemon.c | 75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy() 195 fcopy_fd = open("/dev/vmbus/hv_fcopy", O_RDWR); in main()
|
| /Linux-v6.6/drivers/staging/media/av7110/ |
| D | audio-fopen.rst | 49 - O_RDWR read/write access 73 in O_RDWR mode. All other attempts to open the device in this mode will
|
| D | video-fopen.rst | 49 - O_RDWR read/write access 74 user can open the Video Device in O_RDWR mode. All other attempts to
|
| /Linux-v6.6/drivers/gpu/drm/i915/selftests/ |
| D | mock_drm.h | 37 return mock_drm_getfile(i915->drm.primary, O_RDWR); in mock_file()
|
| /Linux-v6.6/tools/testing/selftests/mm/ |
| D | gup_test.c | 201 filed = open(file, O_RDWR|O_CREAT); in main() 211 gup_fd = open(GUP_TEST_FILE, O_RDWR); in main()
|
| D | ksm_functional_tests.c | 551 mem_fd = open("/proc/self/mem", O_RDWR); in main() 554 ksm_fd = open("/sys/kernel/mm/ksm/run", O_RDWR); in main() 566 ksm_use_zero_pages_fd = open("/sys/kernel/mm/ksm/use_zero_pages", O_RDWR); in main()
|
| /Linux-v6.6/tools/testing/selftests/efivarfs/ |
| D | create-read.c | 26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
| /Linux-v6.6/tools/testing/selftests/ia64/ |
| D | aliasing-test.c | 30 fd = open(path, O_RDWR); in map_mem() 124 fd = open(path, O_RDWR); in read_rom()
|
| /Linux-v6.6/tools/testing/selftests/filesystems/ |
| D | devpts_pts.c | 105 master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer() 123 slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer()
|
| /Linux-v6.6/tools/testing/selftests/gpio/ |
| D | gpio-line-name.c | 33 fd = open(argv[1], O_RDWR); in main()
|
| D | gpio-chip-info.c | 32 fd = open(argv[1], O_RDWR); in main()
|
| /Linux-v6.6/arch/um/drivers/ |
| D | null.c | 27 fd = open(DEV_NULL, O_RDWR); in null_open()
|
| /Linux-v6.6/tools/testing/selftests/damon/ |
| D | huge_count_read_write.c | 20 int filedesc = open(file, O_RDWR); in write_read_with_huge_count()
|