Searched refs:sysctl_physmem (Results 1 – 1 of 1) sorted by relevance
5414 uint64_t sysctl_physmem = 0; in get_physical_memory() local5415 size_t sysctl_len = sizeof(sysctl_physmem); in get_physical_memory()5420 if(sysctl(mib, 2, &sysctl_physmem, &sysctl_len, NULL, 0) == 0) { in get_physical_memory()5423 sysctl_physmem = *(uint32_t*)&sysctl_physmem; in get_physical_memory()5424 phys_mem = sysctl_physmem >> 20; in get_physical_memory()