MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_page_count_min

Function vm_page_count_min

freebsd/sys/vmmeter.h:216–221  ·  view source on GitHub ↗

* Return TRUE if we are under our minimum low-free-pages threshold. * * These routines are typically used within the system to determine whether * 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 * to wake waiters up, and when (after making a pass) to become more * desperate. */

Source from the content-addressed store, hash-verified

214 * desperate.
215 */
216static inline int
217vm_page_count_min(void)
218{
219
220 return (!DOMAINSET_EMPTY(&vm_min_domains));
221}
222
223static inline int
224vm_page_count_min_domain(int domain)

Callers 3

vm_wait_minFunction · 0.85
vnode_pager_putpagesFunction · 0.85
bucket_enableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected