Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/vmmeter.h
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static inline int | static inline int | ||||
vm_page_count_severe(void) | vm_page_count_severe(void) | ||||
{ | { | ||||
return (!DOMAINSET_EMPTY(&vm_severe_domains)); | return (!DOMAINSET_EMPTY(&vm_severe_domains)); | ||||
} | } | ||||
static inline int | |||||
vm_page_count_severe_set(domainset_t *mask) | |||||
{ | |||||
return (DOMAINSET_SUBSET(&vm_severe_domains, mask)); | |||||
} | |||||
/* | /* | ||||
* Return TRUE if we are under our minimum low-free-pages threshold. | * Return TRUE if we are under our minimum low-free-pages threshold. | ||||
* | * | ||||
* This routine is typically used within the system to determine whether | * This routine is typically used within the system to determine whether | ||||
* we can execute potentially very expensive code in terms of memory. It | * we can execute potentially very expensive code in terms of memory. It | ||||
* is also used by the pageout daemon to calculate when to sleep, when | * is also used by the pageout daemon to calculate when to sleep, when | ||||
* to wake waiters up, and when (after making a pass) to become more | * to wake waiters up, and when (after making a pass) to become more | ||||
* desperate. | * desperate. | ||||
Show All 10 Lines |