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

Function vm_wait_min

freebsd/vm/vm_page.c:3138–3148  ·  view source on GitHub ↗

* Wait for free pages to exceed the min threshold globally. */

Source from the content-addressed store, hash-verified

3136 * Wait for free pages to exceed the min threshold globally.
3137 */
3138void
3139vm_wait_min(void)
3140{
3141
3142 mtx_lock(&vm_domainset_lock);
3143 while (vm_page_count_min()) {
3144 vm_min_waiters++;
3145 msleep(&vm_min_domains, &vm_domainset_lock, PVM, "vmwait", 0);
3146 }
3147 mtx_unlock(&vm_domainset_lock);
3148}
3149
3150/*
3151 * Wait for free pages to exceed the severe threshold globally.

Callers

nothing calls this directly

Calls 3

vm_page_count_minFunction · 0.85
mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected