Lines Matching defs:size
219 * Return the size of the total physical memory.
220 * \param size returns the size of the total physical memory
224 os_get_total_physical_memory(uint64_t *size)
233 *size = (uint64_t)phys_pages * (uint64_t)page_size;
236 size_t len = sizeof(*size);
252 return (sysctl(mib, 2, size, &len, NULL, 0) == 0);
261 *size = (uint64_t)info.max_pages * (uint64_t)B_PAGE_SIZE;
269 *size = status.ullTotalPhys;
278 os_get_available_system_memory(uint64_t *size)
294 *size = kb_mem_available << 10;
318 *size = MIN2(mem_available, rl.rlim_cur);
326 * Return the size of a page
327 * \param size returns the size of a page
331 os_get_page_size(uint64_t *size)
339 *size = (uint64_t)page_size;
342 *size = (uint64_t)B_PAGE_SIZE;
348 *size = SysInfo.dwPageSize;
351 size_t len = sizeof(*size);
356 return (sysctl(mib, 2, size, &len, NULL, 0) == 0);