Home
last modified time | relevance | path

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

/external/igt-gpu-tools/lib/
Dintel_os.c68 struct sysinfo sysinf; in intel_get_total_ram_mb() local
70 igt_assert(sysinfo(&sysinf) == 0); in intel_get_total_ram_mb()
71 retval = sysinf.totalram; in intel_get_total_ram_mb()
72 retval *= sysinf.mem_unit; in intel_get_total_ram_mb()
137 struct sysinfo sysinf; in intel_get_avail_ram_mb() local
139 igt_assert(sysinfo(&sysinf) == 0); in intel_get_avail_ram_mb()
140 retval = sysinf.freeram; in intel_get_avail_ram_mb()
141 retval += min(sysinf.freeswap, sysinf.bufferram); in intel_get_avail_ram_mb()
142 retval *= sysinf.mem_unit; in intel_get_avail_ram_mb()
170 struct sysinfo sysinf; in intel_get_total_swap_mb() local
[all …]