Home
last modified time | relevance | path

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

12345678910

/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()
Dproc-self-wchan.c27 fd = open("/proc/self/wchan", O_RDONLY); in main()
/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.gitignore2 open-unlink
DMakefile4 TEST_GEN_FILES := open-unlink create-read
/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()
Dsysfs_utils.c16 fd = open(attr_path, O_WRONLY); in write_sysfs_attribute()
/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/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()
Drtcpie.c42 fd = open(default_rtc, O_RDONLY); in main()
54 fd = open(rtc, O_RDONLY); in main()
/tools/testing/selftests/bpf/
Dcgroup_helpers.c53 fd = open(path, O_RDONLY); in enable_all_controllers()
73 cfd = open(path, O_RDWR); in enable_all_controllers()
152 fd = open(cgroup_procs_path, O_WRONLY); in join_cgroup_from_top()
229 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()
Dtest_lirc_mode2_user.c68 lircfd = open(argv[1], O_RDWR | O_NONBLOCK); in main()
81 inputfd = open(argv[2], O_RDONLY | O_NONBLOCK); in main()
/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/power/cpupower/utils/helpers/
Dmsr.c33 fd = open(msr_file_name, O_RDONLY); in read_msr()
62 fd = open(msr_file_name, O_WRONLY); in write_msr()
Dsysfs.c23 fd = open(path, O_RDONLY); in sysfs_read_file()
70 fd = open(path, O_RDONLY); in sysfs_is_cpu_online()
134 fd = open(path, O_RDONLY); in sysfs_idlestate_read_file()
169 fd = open(path, O_WRONLY); in sysfs_idlestate_write_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/perf/trace/strace/groups/
Dfile9 open
/tools/testing/selftests/vm/
Dgup_benchmark.c81 filed = open(file, O_RDWR|O_CREAT); in main()
90 fd = open("/sys/kernel/debug/gup_benchmark", O_RDWR); in main()
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py338 f_handle = open('cpu.csv', 'a')
372 f_handle = open('cpu.csv', 'a')
381 f_handle = open('/sys/kernel/debug/tracing/trace', 'w')
391 open('/sys/kernel/debug/tracing/events/power/pstate_sample/enable'
401 open('/sys/kernel/debug/tracing/events/power/pstate_sample/enable'
411 with open('/sys/kernel/debug/tracing/buffer_size_kb', 'w') as fp:
421 open('/sys/kernel/debug/tracing/buffer_size_kb'
434 data = open(filename, 'r').read()
/tools/testing/selftests/intel_pstate/
Dmsr.c29 fd = open(msr_file_name, O_RDONLY); in main()

12345678910