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

Function vm_wait_severe

freebsd/vm/vm_page.c:3153–3164  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3151 * Wait for free pages to exceed the severe threshold globally.
3152 */
3153void
3154vm_wait_severe(void)
3155{
3156
3157 mtx_lock(&vm_domainset_lock);
3158 while (vm_page_count_severe()) {
3159 vm_severe_waiters++;
3160 msleep(&vm_severe_domains, &vm_domainset_lock, PVM,
3161 "vmwait", 0);
3162 }
3163 mtx_unlock(&vm_domainset_lock);
3164}
3165
3166u_int
3167vm_wait_count(void)

Callers

nothing calls this directly

Calls 3

vm_page_count_severeFunction · 0.85
mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected