Searched refs:file_contents (Results 1 – 1 of 1) sorted by relevance
207 g_autofree char *file_contents = NULL; in vmsr_count_cpus_per_package() local219 if (!g_file_get_contents(path, &file_contents, &length, NULL)) { in vmsr_count_cpus_per_package()224 int package_id = atoi(file_contents); in vmsr_count_cpus_per_package()239 g_autofree char *file_contents = NULL; in vmsr_get_physical_package_id() local247 if (!g_file_get_contents(file_path, &file_contents, &length, NULL)) { in vmsr_get_physical_package_id()251 package_id = atoi(file_contents); in vmsr_get_physical_package_id()