Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.3-rc2/tools/testing/selftests/openat2/
A Dopenat2_test.c169 .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-6.3-rc2/tools/testing/selftests/user_events/
A Dftrace_test.c111 int fd = open(data_file, O_RDWR); in clear()
138 fd = open(data_file, O_RDWR); in check_print_fmt()
173 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
213 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
236 self->data_fd = open(data_file, O_RDWR); in TEST_F()
286 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
368 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
/linux-6.3-rc2/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c48 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-6.3-rc2/tools/testing/selftests/iommu/
A Diommufd_fail_nth.c93 nth_state->proc_fd = open(buf, O_RDWR); in fail_nth_first()
236 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
304 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
343 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
390 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
469 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
525 self->fd = open("/dev/iommu", O_RDWR); in TEST_FAIL_NTH()
/linux-6.3-rc2/tools/testing/selftests/landlock/
A Dfs_test.c725 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
765 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
799 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
805 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
862 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
887 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1065 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1078 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1089 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
3163 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
[all …]
/linux-6.3-rc2/tools/testing/selftests/kcmp/
A Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
94 fd2 = open(kpath, O_RDWR, 0644); in main()
/linux-6.3-rc2/fs/ecryptfs/
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-6.3-rc2/Documentation/userspace-api/media/dvb/
A Dca-fopen.rst39 - - ``O_RDWR``
59 Only one user can open the CA Device in ``O_RDWR`` mode. All other
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/
A Dmock_drm.h37 return mock_drm_getfile(i915->drm.primary, O_RDWR); in mock_file()
/linux-6.3-rc2/drivers/staging/media/av7110/
A Dvideo-fopen.rst49 - O_RDWR read/write access
74 user can open the Video Device in O_RDWR mode. All other attempts to
A Daudio-fopen.rst49 - O_RDWR read/write access
73 in O_RDWR mode. All other attempts to open the device in this mode will
/linux-6.3-rc2/tools/testing/selftests/mount/
A Dnosymfollow-test.c119 data = creat(DATA, O_RDWR); in setup_symlink()
135 link = open(LINK, 0, O_RDWR); in test_link_traversal()
/linux-6.3-rc2/tools/hv/
A Dhv_fcopy_daemon.c75 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-6.3-rc2/tools/testing/selftests/mm/
A Dgup_test.c202 filed = open(file, O_RDWR|O_CREAT); in main()
212 gup_fd = open(GUP_TEST_FILE, O_RDWR); in main()
/linux-6.3-rc2/tools/testing/selftests/efivarfs/
A Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
/linux-6.3-rc2/tools/testing/selftests/ia64/
A Daliasing-test.c30 fd = open(path, O_RDWR); in map_mem()
124 fd = open(path, O_RDWR); in read_rom()
/linux-6.3-rc2/tools/power/x86/intel-speed-select/
A Disst-daemon.c176 i = open("/dev/null", O_RDWR);
188 pid_file_handle = open(pidfile, O_RDWR | O_CREAT, 0600);
/linux-6.3-rc2/tools/testing/selftests/filesystems/
A Ddevpts_pts.c105 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-6.3-rc2/tools/testing/selftests/gpio/
A Dgpio-line-name.c33 fd = open(argv[1], O_RDWR); in main()
A Dgpio-chip-info.c32 fd = open(argv[1], O_RDWR); in main()
/linux-6.3-rc2/arch/um/drivers/
A Dnull.c27 fd = open(DEV_NULL, O_RDWR); in null_open()
/linux-6.3-rc2/tools/testing/selftests/damon/
A Dhuge_count_read_write.c20 int filedesc = open(file, O_RDWR); in write_read_with_huge_count()
/linux-6.3-rc2/tools/testing/selftests/media_tests/
A Dmedia_device_open.c70 fd = open(media_device, O_RDWR); in main()
/linux-6.3-rc2/tools/leds/
A Duledmon.c37 fd = open("/dev/uleds", O_RDWR); in main()
/linux-6.3-rc2/arch/um/os-Linux/
A Dtty.c32 fd = open("/dev/ptmx", O_RDWR); in get_pty()

Completed in 44 milliseconds

12345678910>>...12