| /linux/tools/iio/ |
| H A D | iio_utils.c | 132 sysfsfp = fopen(filename, "r"); in iioutils_get_type() 257 sysfsfp = fopen(filename, "r"); in iioutils_get_param_float() 348 sysfsfp = fopen(filename, "r"); in build_channel_array() 395 sysfsfp = fopen(filename, "r"); in build_channel_array() 450 sysfsfp = fopen(filename, "r"); in build_channel_array() 613 namefp = fopen(filename, "r"); in find_type_by_name() 667 sysfsfp = fopen(temp, "w"); in _write_sysfs_int() 688 sysfsfp = fopen(temp, "r"); in _write_sysfs_int() 765 sysfsfp = fopen(temp, "w"); in _write_sysfs_string() 786 sysfsfp = fopen(temp, "r"); in _write_sysfs_string() [all …]
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | stackdump_test.c | 42 file = fopen("/proc/sys/kernel/core_pattern", "r"); in FIXTURE_SETUP() 72 file = fopen("/proc/sys/kernel/core_pattern", "w"); in FIXTURE_TEARDOWN() 126 file = fopen("/proc/sys/kernel/core_pattern", "w"); 149 file = fopen(STACKDUMP_FILE, "r");
|
| /linux/tools/testing/selftests/powerpc/papr_attributes/ |
| H A D | attr_test.c | 90 f = fopen(file_name, "r"); in verify_energy_info() 95 f = fopen(file_name, "r"); in verify_energy_info() 101 f = fopen(file_name, "r"); in verify_energy_info()
|
| /linux/tools/power/acpi/tools/acpidump/ |
| H A D | apfiles.c | 77 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/tools/perf/util/ |
| H A D | cputopo.c | 51 fp = fopen(filename, "r"); in build_cpu_topology() 82 fp = fopen(filename, "r"); in build_cpu_topology() 114 fp = fopen(filename, "r"); in build_cpu_topology() 329 fp = fopen(str, "r"); in load_numa_node() 353 fp = fopen(str, "r"); in load_numa_node() 389 fp = fopen(path, "r"); in numa_topology__new()
|
| H A D | copyfile.c | 23 from_fp = fopen(from, "r"); in slow_copyfile() 28 to_fp = fopen(to, "w"); in slow_copyfile()
|
| H A D | find-map.c | 8 maps = fopen("/proc/self/maps", "r"); in find_map()
|
| /linux/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_debugfs.c | 252 #define FOPS(fopen) { \ argument 254 .open = (fopen), \ 259 #define FOPS_RW(fopen, fwrite) { \ argument 261 .open = (fopen), \
|
| /linux/samples/bpf/ |
| H A D | hbm.c | 89 outf = fopen(outFname, "w"); in read_trace_pipe2() 228 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", "r"); in run_bpf_prog() 246 fin = fopen("/sys/class/net/eth0/statistics/tx_bytes", in run_bpf_prog() 315 fout = fopen(fname, "w"); in run_bpf_prog() 343 fout = fopen(fname, "w"); in run_bpf_prog()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.c | 77 f = fopen("/proc/kallsyms", "r"); in load_kallsyms_local_common() 223 f = fopen("/proc/kallsyms", "r"); in kallsyms_find() 315 f = fopen("/proc/self/maps", "r"); in get_uprobe_offset() 382 f = fopen("/proc/self/maps", "r"); in get_rel_offset() 492 fp = fopen(TRACEFS_PIPE, "r"); in read_trace_pipe_iter() 494 fp = fopen(DEBUGFS_PIPE, "r"); in read_trace_pipe_iter() 636 f = fopen("/sys/kernel/tracing/available_filter_functions", "r"); 638 f = fopen("/sys/kernel/debug/tracing/available_filter_functions", "r"); 704 f = fopen("/sys/kernel/tracing/available_filter_functions_addrs", "r"); 706 f = fopen("/sy [all...] |
| /linux/tools/wmi/ |
| H A D | dell-smbios-example.c | 66 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/tools/testing/selftests/mm/ |
| H A D | vm_util.c | 183 fp = fopen(STATUS_FILE_PATH, "r"); in rss_anon() 210 fp = fopen(SMAP_FILE_PATH, "r"); in __get_smap_entry() 299 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size() 404 FILE *f = fopen("/proc/meminfo", "r"); in get_free_hugepages() 537 FILE *f = fopen(file_path, "w"); in write_sysfs() 556 FILE *f = fopen(file_path, "r"); in read_sysfs()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | test_util.c | 165 f = fopen(path, "r"); in get_sysfs_val() 200 f = fopen("/proc/meminfo", "r"); in get_def_hugetlb_pagesz() 381 fp = fopen(path, "r"); in get_run_delay() 429 fp = fopen(CLOCKSOURCE_PATH, "r"); in sys_get_cur_clocksource()
|
| /linux/tools/testing/selftests/mqueue/ |
| H A D | mq_open_tests.c | 273 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/scripts/ipe/polgen/ |
| H A D | polgen.c | 26 fd = fopen(pathname, "r"); in policy_to_buffer() 67 fd = fopen(pathname, "w"); in write_boot_policy()
|
| /linux/tools/testing/selftests/timens/ |
| H A D | procfs.c | 73 proc = fopen("/proc/uptime", "r"); in read_proc_uptime() 99 proc = fopen("/proc/stat", "r"); in read_proc_stat_btime()
|
| /linux/tools/testing/selftests/resctrl/ |
| H A D | cache.c | 78 fp = fopen(llc_occup_path, "r"); in get_llc_occu_resctrl() 111 fp = fopen(filename, "a"); in print_results_cache()
|
| /linux/tools/testing/selftests/arm64/mte/ |
| H A D | check_hugetlb_options.c | 30 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size() 51 FILE *f = fopen("/proc/meminfo", "r"); in is_hugetlb_allocated() 75 f = fopen(str, "w"); in write_sysfs()
|
| H A D | check_ksm_options.c | 31 f = fopen(str, "r"); in read_sysfs() 48 f = fopen(str, "w"); in write_sysfs()
|
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | proc.c | 159 fnetstat = fopen("/proc/thread-self/net/netstat", "r"); in netstat_read() 168 fnetstat = fopen("/proc/thread-self/net/snmp", "r"); in netstat_read() 177 fnetstat = fopen("/proc/thread-self/net/snmp6", "r"); in netstat_read()
|
| /linux/drivers/scsi/aic7xxx/aicasm/ |
| H A D | aicasm.c | 171 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/tools/hv/ |
| H A D | hv_kvp_daemon.c | 168 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 213 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 500 file = fopen("/etc/os-release", "r"); in kvp_get_os_info() 550 file = fopen("/etc/SuSE-release", "r"); in kvp_get_os_info() 553 file = fopen("/etc/redhat-release", "r"); in kvp_get_os_info() 634 file = fopen(dev_id, "r"); in kvp_get_if_name() 677 file = fopen(addr_file, "r"); in kvp_if_name_to_mac() 1086 file = fopen(dev_id, "r"); in kvp_mac_to_ip() 1524 ifcfg_file = fopen(if_filename, "w"); in kvp_set_ip_info() 1535 nmfile = fopen(nm_filename, "w"); in kvp_set_ip_info()
|
| /linux/scripts/kconfig/ |
| H A D | confdata.c | 764 out = fopen(filename, "w"); in conf_write_defconfig() 833 out = fopen(name, "w"); in conf_write() 837 out = fopen(tmpname, "w"); in conf_write() 937 out = fopen(tmp, "w"); in conf_write_autoconf_cmd() 1052 file = fopen(tmp, "w"); in __conf_write_autoconf()
|
| /linux/tools/bpf/ |
| H A D | bpf_asm.c | 40 fp = fopen(argv[i], "r"); in main()
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | common.c | 24 FILE *f = fopen("/proc/meminfo", "r"); in default_huge_page_size()
|