X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Futil%2Fos_misc.h;h=60811faf5a4658877fb8fcd502d35762da4ab6b2;hb=aff078eb5a79dc53330ee8edfc755a995a041c74;hp=8ac3eeff3773aa4941c97abd16917c01815819aa;hpb=7f12a66ad5be2ec190000622dddff58600bc9053;p=mesa.git diff --git a/src/util/os_misc.h b/src/util/os_misc.h index 8ac3eeff377..60811faf5a4 100644 --- a/src/util/os_misc.h +++ b/src/util/os_misc.h @@ -34,9 +34,10 @@ #ifndef _OS_MISC_H_ #define _OS_MISC_H_ +#include +#include #include "detect_os.h" -#include "pipe/p_compiler.h" #if DETECT_OS_UNIX @@ -94,6 +95,12 @@ os_get_option(const char *name); bool os_get_total_physical_memory(uint64_t *size); +/* + * Amount of physical memory available to a process + */ +bool +os_get_available_system_memory(uint64_t *size); + #ifdef __cplusplus }