Home
last modified time | relevance | path

Searched refs:fopen (Results 1 – 25 of 173) sorted by relevance

1234567

/Linux-v5.10/tools/iio/
Diio_utils.c130 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
255 sysfsfp = fopen(filename, "r"); in iioutils_get_param_float()
344 sysfsfp = fopen(filename, "r"); in build_channel_array()
394 sysfsfp = fopen(filename, "r"); in build_channel_array()
455 sysfsfp = fopen(filename, "r"); in build_channel_array()
616 namefp = fopen(filename, "r"); in find_type_by_name()
670 sysfsfp = fopen(temp, "w"); in _write_sysfs_int()
691 sysfsfp = fopen(temp, "r"); in _write_sysfs_int()
768 sysfsfp = fopen(temp, "w"); in _write_sysfs_string()
789 sysfsfp = fopen(temp, "r"); in _write_sysfs_string()
[all …]
/Linux-v5.10/tools/testing/selftests/resctrl/
Dresctrlfs.c20 mounts = fopen("/proc/mounts", "r"); in find_resctrl_mount()
123 fp = fopen(phys_pkg_path, "r"); in get_resource_id()
165 fp = fopen(cache_path, "r"); in get_cache_size()
220 fp = fopen(cbm_mask_path, "r"); in get_cbm_mask()
252 fp = fopen(core_siblings_path, "r"); in get_core_sibling()
408 fp = fopen(tasks, "w"); in write_pid_to_tasks()
536 fp = fopen(controlgroup, "w"); in write_schemata()
564 FILE *inf = fopen("/proc/filesystems", "r"); in check_resctrlfs_support()
622 FILE *inf = fopen("/proc/cpuinfo", "r"); in validate_resctrl_feature_request()
Dresctrl_val.c157 fp = fopen(imc_counter_type, "r"); in read_from_imc_dir()
176 fp = fopen(imc_counter_cfg, "r"); in read_from_imc_dir()
194 fp = fopen(imc_counter_cfg, "r"); in read_from_imc_dir()
428 fp = fopen(mbm_total_path, "r"); in get_mem_bw_resctrl()
476 fp = fopen(filename, "a"); in print_results_bw()
Dcache.c129 fp = fopen(llc_occup_path, "r"); in get_llc_occu_resctrl()
164 fp = fopen(filename, "a"); in print_results_cache()
/Linux-v5.10/tools/perf/util/
Dcputopo.c43 fp = fopen(filename, "r"); in build_cpu_topology()
74 fp = fopen(filename, "r"); in build_cpu_topology()
106 fp = fopen(filename, "r"); in build_cpu_topology()
247 fp = fopen(str, "r"); in load_numa_node()
271 fp = fopen(str, "r"); in load_numa_node()
307 fp = fopen(path, "r"); in numa_topology__new()
Dcopyfile.c23 from_fp = fopen(from, "r"); in slow_copyfile()
28 to_fp = fopen(to, "w"); in slow_copyfile()
/Linux-v5.10/tools/power/acpi/tools/acpidump/
Dapfiles.c77 file = fopen(pathname, "w"); in ap_open_output_file()
148 file = fopen(filename, "wb"); in ap_write_to_binary_file()
189 file = fopen(pathname, "rb"); in ap_get_table_from_file()
/Linux-v5.10/drivers/net/wireless/rsi/
Drsi_91x_debugfs.c253 #define FOPS(fopen) { \ argument
255 .open = (fopen), \
260 #define FOPS_RW(fopen, fwrite) { \ argument
262 .open = (fopen), \
/Linux-v5.10/samples/bpf/
Dhbm.c93 outf = fopen(outFname, "w"); in read_trace_pipe2()
221 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", "r"); in run_bpf_prog()
239 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", in run_bpf_prog()
308 fout = fopen(fname, "w"); in run_bpf_prog()
335 fout = fopen(fname, "w"); in run_bpf_prog()
/Linux-v5.10/tools/wmi/
Ddell-smbios-example.c66 f = fopen(value_sysfs, "rb"); in find_token()
80 f = fopen(location_sysfs, "rb"); in find_token()
147 f = fopen(ioctl_devfs, "rb"); in query_buffer_size()
/Linux-v5.10/tools/testing/selftests/bpf/
Dtrace_helpers.c27 FILE *f = fopen("/proc/kallsyms", "r"); in load_kallsyms()
103 f = fopen("/proc/kallsyms", "r"); in kallsyms_find()
/Linux-v5.10/tools/testing/selftests/mqueue/
Dmq_open_tests.c273 def_msgs = fopen(DEF_MSGS, "r+"); in main()
274 def_msgsize = fopen(DEF_MSGSIZE, "r+"); in main()
275 max_msgs = fopen(MAX_MSGS, "r+"); in main()
276 max_msgsize = fopen(MAX_MSGSIZE, "r+"); in main()
/Linux-v5.10/tools/bpf/bpftool/
Dtracelog.c76 fp = fopen("/proc/mounts", "r"); in get_tracefs_pipe()
139 trace_pipe_fd = fopen(trace_pipe, "r"); in do_tracelog()
/Linux-v5.10/scripts/dtc/
Ddtc.c145 f = fopen(fname, "r"); in guess_input_format()
279 depfile = fopen(depname, "w"); in main()
344 outf = fopen(outname, "wb"); in main()
/Linux-v5.10/tools/testing/selftests/arm64/mte/
Dcheck_ksm_options.c31 f = fopen(str, "r"); in read_sysfs()
45 f = fopen(str, "w"); in write_sysfs()
/Linux-v5.10/tools/vm/
Dpage_owner_sort.c102 fin = fopen(argv[1], "r"); in main()
103 fout = fopen(argv[2], "w"); in main()
/Linux-v5.10/tools/perf/arch/s390/util/
Dheader.c56 sysinfo = fopen(SYSINFO, "r"); in get_cpuid()
100 sysinfo = fopen(SRVLVL, "r"); in get_cpuid()
/Linux-v5.10/scripts/selinux/genheaders/
Dgenheaders.c55 fout = fopen(argv[1], "w"); in main()
115 fout = fopen(argv[2], "w"); in main()
/Linux-v5.10/tools/testing/selftests/powerpc/pmu/
Dlib.c159 f = fopen("/proc/self/maps", "r"); in parse_proc_maps()
200 f = fopen(PARANOID_PATH, "r"); in require_paranoia_below()
/Linux-v5.10/arch/x86/boot/tools/
Dbuild.c343 file = fopen(fname, "r"); in parse_zoffset()
387 dest = fopen(argv[4], "w"); in main()
392 file = fopen(argv[1], "r"); in main()
/Linux-v5.10/tools/power/cpupower/bench/
Dparse.c96 output = fopen(filename, "w+"); in prepare_output()
166 configfile = fopen(path, "r"); in prepare_config()
/Linux-v5.10/drivers/scsi/aic7xxx/aicasm/
Daicasm.c171 if ((listfile = fopen(optarg, "w")) == NULL) { in main()
187 if ((ofile = fopen(optarg, "w")) == NULL) { in main()
195 if ((regdiagfile = fopen(optarg, "w")) == NULL) { in main()
202 if ((regfile = fopen(optarg, "w")) == NULL) { in main()
537 if ((ifile = fopen(ifilename, "r")) == NULL) { in output_listing()
/Linux-v5.10/tools/hv/
Dhv_kvp_daemon.c155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file()
186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state()
442 file = fopen("/etc/os-release", "r"); in kvp_get_os_info()
492 file = fopen("/etc/SuSE-release", "r"); in kvp_get_os_info()
495 file = fopen("/etc/redhat-release", "r"); in kvp_get_os_info()
576 file = fopen(dev_id, "r"); in kvp_get_if_name()
619 file = fopen(addr_file, "r"); in kvp_if_name_to_mac()
969 file = fopen(dev_id, "r"); in kvp_mac_to_ip()
1233 file = fopen(if_file, "w"); in kvp_set_ip_info()
/Linux-v5.10/tools/bpf/
Dbpf_asm.c40 fp = fopen(argv[i], "r"); in main()
/Linux-v5.10/scripts/selinux/mdp/
Dmdp.c60 fout = fopen(polout, "w"); in main()
263 fout = fopen(ctxout, "w"); in main()

1234567