Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/tools/testing/selftests/wireguard/qemu/
Dinit.c72 fd = open("/dev/urandom", O_WRONLY); in seed_rng()
113 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
119 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
125 fd = open("/proc/sys/kernel/panic_on_warn", O_WRONLY); in enable_logging()
184 fd = open("/proc/cmdline", O_RDONLY); in launch_tests()
200 fd = open(success_dev, O_WRONLY); in launch_tests()
224 int fd = open("/dev/console", O_RDWR); in ensure_console()
243 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks()
255 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
263 fd = open("/sys/kernel/debug/kmemleak", O_RDONLY); in check_leaks()
/tools/testing/selftests/efivarfs/
Dopen-unlink.c20 fd = open(path, O_RDONLY); in set_immutable()
51 fd = open(path, O_RDONLY); in get_immutable()
89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
115 fd = open(path, O_RDONLY); in main()
D.gitignore3 open-unlink
DMakefile4 TEST_GEN_FILES := open-unlink create-read
/tools/testing/selftests/proc/
Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
36 fd1 = open(buf, O_RDONLY); in main()
40 fd2 = open(buf, O_RDONLY); in main()
Dsetns-dcache.c95 nsfd = open(buf, O_RDONLY); in main()
102 (void)open("/proc/net/unix", O_RDONLY); in main()
116 fd = open("/proc/net/unix", O_RDONLY); in main()
Dsetns-sysvipc.c94 nsfd = open(buf, O_RDONLY); in main()
101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main()
115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
Dproc-pid-vm.c205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
269 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main()
321 fd = open(buf, O_RDONLY); in main()
340 fd = open(buf, O_RDONLY); in main()
396 fd = open(buf, O_RDONLY); in main()
432 fd = open(buf, O_RDONLY); in main()
/tools/testing/kunit/
Dkunit_tool_test.py106 with open(log_path) as file:
117 with open(log_path) as file:
146 with open(all_passed_log) as file:
154 with open(failed_log) as file:
162 with open(empty_log) as file:
172 with open(empty_log) as file:
183 with open(crash_log) as file:
192 with open(crashed_log) as file:
200 file = open(skipped_log)
211 file = open(skipped_log)
[all …]
/tools/cgroup/
Diocost_coef_gen.py102 with open(outfile.name, 'r') as f:
110 with open(elevator_path, 'w') as f:
112 with open(nomerges_path, 'w') as f:
142 with open(elevator_path, 'r') as f:
144 with open(nomerges_path, 'r') as f:
149 with open(elevator_path, 'w') as f:
151 with open(nomerges_path, 'w') as f:
Dcgroup_event_listener.c34 cfd = open(argv[1], O_RDONLY); in main()
43 event_control = open(event_control_path, O_WRONLY); in main()
/tools/usb/usbip/libsrc/
Dusbip_host_common.h25 int (*open)(struct usbip_host_driver *hdriver); member
57 if (!hdriver->ops.open) in usbip_driver_open()
59 return hdriver->ops.open(hdriver); in usbip_driver_open()
/tools/testing/selftests/timers/
Dclocksource-switch.c47 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); in get_clocksources()
79 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); in get_cur_clocksource()
91 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); in change_clocksource()
/tools/laptop/freefall/
Dfreefall.c42 int fd = open(unload_heads_path, O_RDONLY); in valid_disk()
56 int fd = open(path, O_RDWR); in write_int()
125 fd = open("/dev/freefall", O_RDONLY); in main()
/tools/testing/selftests/landlock/
Dbase_test.c182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
294 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
335 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
337 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
347 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
350 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
/tools/testing/selftests/bpf/prog_tests/
Dd_path.c44 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events()
47 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events()
50 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644); in trigger_fstat_events()
55 indicatorfd = open("/tmp/", O_PATH); in trigger_fstat_events()
/tools/power/cpupower/utils/helpers/
Dmsr.c32 fd = open(msr_file_name, O_RDONLY); in read_msr()
61 fd = open(msr_file_name, O_WRONLY); in write_msr()
/tools/testing/selftests/bpf/
Dcgroup_helpers.c62 fd = open(path, O_RDONLY); in enable_all_controllers()
82 cfd = open(path, O_RDWR); in enable_all_controllers()
160 fd = open(cgroup_procs_path, O_WRONLY); in join_cgroup_from_top()
237 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()
397 fd = open(cgroup_classid_path, O_WRONLY); in set_classid()
/tools/testing/selftests/powerpc/dscr/
Ddscr.h79 fd = open(DSCR_DEFAULT, O_RDONLY); in get_default_dscr()
103 fd = open(DSCR_DEFAULT, O_RDWR); in set_default_dscr()
/tools/testing/selftests/powerpc/
Dutils.c34 fd = open("/proc/self/auxv", O_RDONLY); in read_auxv()
149 if ((fd = open(path, O_RDONLY)) < 0) in read_sysfs_file()
171 if ((fd = open(path, O_RDONLY)) < 0) in read_debugfs_file()
193 if ((fd = open(path, O_WRONLY)) < 0) in write_debugfs_file()
/tools/perf/util/
Dzlib.c32 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file()
85 int fd = open(input, O_RDONLY); in gzip_is_compressed()
/tools/testing/selftests/vm/
Dmadv_populate.c164 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_populated()
178 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_populated()
236 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_softdirty()
250 int fd = open("/proc/self/pagemap", O_RDONLY); in range_is_not_softdirty()
264 int fd = open("/proc/self/clear_refs", O_WRONLY); in clear_softdirty()
Dsplit_huge_page_test.c61 fd = open(PMD_SIZE_PATH, O_RDONLY); in read_pmd_pagesize()
83 fd = open(path, O_WRONLY); in write_file()
230 pagemap_fd = open(pagemap_proc, O_RDONLY); in split_pte_mapped_thp()
237 kpageflags_fd = open(kpageflags_proc, O_RDONLY); in split_pte_mapped_thp()
337 fd = open(testfile, O_CREAT|O_WRONLY); in split_file_backed_thp()
/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c90 fd = open(device_path, O_RDONLY | O_CLOEXEC); in __do_binderfs_test()
113 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
160 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
256 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping()
281 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping()
422 fd = open(device_path, O_RDONLY | O_CLOEXEC); in TEST()
439 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC); in TEST()
/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c64 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW); in write_file()
324 ret = open("/proc/self/ns/user", O_RDONLY); in get_nestedns_mount_cb()
329 ret = open("/proc/self/ns/mnt", O_RDONLY); in get_nestedns_mount_cb()
334 ret = open(SET_GROUP_A, O_RDONLY); in get_nestedns_mount_cb()

12345678910>>...14