Home
last modified time | relevance | path

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

12345

/tools/testing/selftests/openat2/
Dopenat2_test.c165 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
167 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
178 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
198 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
207 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
210 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
221 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
/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()
234 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older()
266 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer()
346 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
/tools/testing/selftests/vm/
Dgup_benchmark.c97 filed = open(file, O_RDWR|O_CREAT); in main()
107 fd = open("/sys/kernel/debug/gup_benchmark", O_RDWR); in main()
Dhugepage-mmap.c70 fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); in main()
/tools/testing/selftests/efivarfs/
Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
/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()
/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()
/tools/leds/
Duledmon.c37 fd = open("/dev/uleds", O_RDWR); in main()
/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()
/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()
/tools/testing/selftests/kvm/
Dkvm_create_max_vcpus.c31 vm = vm_create(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES, O_RDWR); in test_vcpu_creation()
/tools/testing/selftests/powerpc/dscr/
Ddscr.h103 fd = open(DSCR_DEFAULT, O_RDWR); in set_default_dscr()
Ddscr_sysfs_test.c18 fd = open(file, O_RDWR); in check_cpu_dscr_default()
/tools/gpio/
Dgpio-watch.c35 fd = open(argv[1], O_RDWR | O_CLOEXEC); in main()
/tools/testing/selftests/ia64/
Daliasing-test.c30 fd = open(path, O_RDWR); in map_mem()
124 fd = open(path, O_RDWR); in read_rom()
/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()
/tools/include/uapi/asm-generic/
Dfcntl.h21 #define O_RDWR 00000002 macro
/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c30 devfd = open("/dev/udmabuf", O_RDWR); in main()
/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c68 lircfd = open(argv[1], O_RDWR | O_NONBLOCK); in main()
/tools/testing/selftests/kvm/x86_64/
Dmmio_warning_test.c60 kvm = open("/dev/kvm", O_RDWR); in test()
/tools/testing/selftests/android/ion/
Dionmap_test.c46 fd = open(name, O_RDWR); in open_vgem()
/tools/perf/tests/
Dbp_signal_overflow.c103 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow()
/tools/laptop/freefall/
Dfreefall.c56 int fd = open(path, O_RDWR); in write_int()

12345