Searched refs:filep (Results 1 – 2 of 2) sorted by relevance
/tools/hv/ |
D | hv_kvp_daemon.c | 148 FILE *filep; in kvp_update_file() local 157 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 158 if (!filep) { in kvp_update_file() 167 kvp_file_info[pool].num_records, filep); in kvp_update_file() 169 if (ferror(filep) || fclose(filep)) { in kvp_update_file() 180 FILE *filep; in kvp_update_mem_state() local 189 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 190 if (!filep) { in kvp_update_mem_state() 200 filep); in kvp_update_mem_state() 202 if (ferror(filep)) { in kvp_update_mem_state() [all …]
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 1219 FILE *filep = fopen(path, "r"); in fopen_or_die() local 1220 if (!filep) in fopen_or_die() 1222 return filep; in fopen_or_die() 1232 FILE *filep; in parse_int_file() local 1238 filep = fopen_or_die(path, "r"); in parse_int_file() 1239 if (fscanf(filep, "%d", &value) != 1) in parse_int_file() 1241 fclose(filep); in parse_int_file() 1276 FILE *filep; in get_num_ht_siblings() local 1282 filep = fopen_or_die(path, "r"); in get_num_ht_siblings() 1288 matches = fscanf(filep, "%d%c%d\n", &sib1, &character, &sib2); in get_num_ht_siblings() [all …]
|