Lines Matching refs:dir
128 const char *dir = "/sys/devices/system/cpu/"; in vmsr_get_max_physical_package() local
138 filePath = g_build_filename(dir, cpuid, topo_path, NULL); in vmsr_get_max_physical_package()
180 GDir *dir; in vmsr_get_maxcpus() local
185 dir = g_dir_open(path, 0, NULL); in vmsr_get_maxcpus()
186 if (dir == NULL) { in vmsr_get_maxcpus()
191 while ((entry_name = g_dir_read_name(dir)) != NULL) { in vmsr_get_maxcpus()
198 g_dir_close(dir); in vmsr_get_maxcpus()
297 DIR *dir = opendir(path); in vmsr_get_thread_ids() local
298 if (dir == NULL) { in vmsr_get_thread_ids()
307 while ((ent = readdir(dir)) != NULL) { in vmsr_get_thread_ids()
319 closedir(dir); in vmsr_get_thread_ids()