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

Function vm_page_busy_free

freebsd/vm/vm_page.c:1196–1205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194}
1195
1196static void
1197vm_page_busy_free(vm_page_t m)
1198{
1199 u_int x;
1200
1201 atomic_thread_fence_rel();
1202 x = atomic_swap_int(&m->busy_lock, VPB_FREED);
1203 if ((x & VPB_BIT_WAITERS) != 0)
1204 wakeup(m);
1205}
1206
1207/*
1208 * vm_page_unhold_pages:

Callers 2

vm_page_putfakeFunction · 0.85
vm_page_free_prepFunction · 0.85

Calls 3

atomic_thread_fence_relFunction · 0.50
atomic_swap_intFunction · 0.50
wakeupFunction · 0.50

Tested by

no test coverage detected