Home
last modified time | relevance | path

Searched refs:mib (Results 1 – 3 of 3) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/
Dos_misc.c262 int mib[2]; in os_get_total_physical_memory()
264 mib[0] = CTL_HW; in os_get_total_physical_memory()
266 mib[1] = HW_MEMSIZE; in os_get_total_physical_memory()
268 mib[1] = HW_PHYSMEM64; in os_get_total_physical_memory()
270 mib[1] = HW_REALMEM; in os_get_total_physical_memory()
272 mib[1] = HW_PHYSMEM; in os_get_total_physical_memory()
277 return (sysctl(mib, 2, size, &len, NULL, 0) == 0); in os_get_total_physical_memory()
328 int mib[] = { CTL_HW, HW_USERMEM64 }; in os_get_available_system_memory()
330 int mib[] = { CTL_HW, HW_USERMEM }; in os_get_available_system_memory()
336 if (sysctl(mib, 2, &mem_available, &len, NULL, 0) == -1) in os_get_available_system_memory()
[all …]
Du_process.c235 int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }; in util_get_process_exec_path()
237 (void) sysctl(mib, 4, process_path, &len, NULL, 0); in util_get_process_exec_path()
292 int mib[] = { in util_get_command_line()
306 if (sysctl(mib, ARRAY_SIZE(mib), cmdline, &size, NULL, 0) == -1) { in util_get_command_line()
Du_cpu_detect.c763 const int mib[] = { CTL_HW, HW_NCPUONLINE }; in _util_cpu_detect_once() local
767 sysctl(mib, 2, &ncpu, &len, NULL, 0); in _util_cpu_detect_once()
778 const int mib[] = { CTL_HW, HW_NCPU }; in _util_cpu_detect_once() local
782 sysctl(mib, 2, &ncpu, &len, NULL, 0); in _util_cpu_detect_once()
799 const int mib[] = { CTL_HW, HW_NCPU }; in _util_cpu_detect_once() local
803 sysctl(mib, 2, &ncpu, &len, NULL, 0); in _util_cpu_detect_once()