Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.15/tools/testing/selftests/openat2/
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-v5.15/tools/testing/selftests/dmabuf-heaps/
Ddmabuf-heap.c49 fd = open(name, O_RDWR); in open_vgem()
99 fd = open(buf, O_RDWR); in dmabuf_heap_open()
129 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc()
312 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older()
344 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer()
425 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
/Linux-v5.15/tools/testing/selftests/landlock/
Dfs_test.c606 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
643 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
646 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
674 ASSERT_EQ(EACCES, test_open(file1_s1d1, O_RDWR)); in TEST_F_FORK()
680 ASSERT_EQ(0, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
686 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
839 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
850 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
861 ASSERT_EQ(0, test_open(file1_s1d3, O_RDWR)); in TEST_F_FORK()
1997 ASSERT_EQ(EACCES, test_open(file1_s1d2, O_RDWR)); in TEST_F_FORK()
[all …]
/Linux-v5.15/tools/testing/selftests/kcmp/
Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
91 fd2 = open(kpath, O_RDWR, 0644); in main()
/Linux-v5.15/fs/ecryptfs/
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-v5.15/Documentation/userspace-api/media/dvb/
Dca-fopen.rst39 - - ``O_RDWR``
59 Only one user can open the CA Device in ``O_RDWR`` mode. All other
/Linux-v5.15/drivers/gpu/drm/i915/selftests/
Dmock_drm.h37 return mock_drm_getfile(i915->drm.primary, O_RDWR); in mock_file()
Digt_mmap.c35 file = mock_drm_getfile(i915->drm.primary, O_RDWR); in igt_mmap_offset()
/Linux-v5.15/tools/hv/
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-v5.15/tools/testing/selftests/kvm/
Dhardware_disable_test.c61 fd = open("/dev/null", O_RDWR); in sleeping_thread()
107 vm = vm_create(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES, O_RDWR); in run_test()
Dkvm_create_max_vcpus.c30 vm = vm_create(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES, O_RDWR); in test_vcpu_creation()
/Linux-v5.15/tools/testing/selftests/mount/
Dnosymfollow-test.c119 data = creat(DATA, O_RDWR); in setup_symlink()
135 link = open(LINK, 0, O_RDWR); in test_link_traversal()
/Linux-v5.15/drivers/staging/media/av7110/
Daudio-fopen.rst49 - O_RDWR read/write access
73 in O_RDWR mode. All other attempts to open the device in this mode will
Dvideo-fopen.rst49 - O_RDWR read/write access
74 user can open the Video Device in O_RDWR mode. All other attempts to
/Linux-v5.15/tools/testing/selftests/vm/
Dgup_test.c196 filed = open(file, O_RDWR|O_CREAT); in main()
206 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); in main()
/Linux-v5.15/tools/testing/selftests/efivarfs/
Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
/Linux-v5.15/tools/testing/selftests/ia64/
Daliasing-test.c30 fd = open(path, O_RDWR); in map_mem()
124 fd = open(path, O_RDWR); in read_rom()
/Linux-v5.15/tools/testing/selftests/filesystems/
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-v5.15/arch/um/drivers/
Dnull.c27 fd = open(DEV_NULL, O_RDWR); in null_open()
/Linux-v5.15/tools/testing/selftests/media_tests/
Dmedia_device_open.c70 fd = open(media_device, O_RDWR); in main()
Dmedia_device_test.c79 fd = open(media_device, O_RDWR); in main()
Dvideo_device_test.c73 fd = open(video_dev, O_RDWR); in main()
/Linux-v5.15/tools/leds/
Duledmon.c37 fd = open("/dev/uleds", O_RDWR); in main()
/Linux-v5.15/tools/testing/selftests/memfd/
Dmemfd_test.c64 fd = open(path, O_RDWR); in mfd_assert_reopen_fd()
484 O_RDWR | O_CREAT | O_TRUNC, in mfd_assert_shrink()
502 O_RDWR | O_CREAT | O_TRUNC, in mfd_fail_shrink()
973 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
990 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
/Linux-v5.15/arch/um/os-Linux/
Dtty.c32 fd = open("/dev/ptmx", O_RDWR); in get_pty()

1234567891011