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

Function vm_page_grab_release

freebsd/vm/vm_page.c:4352–4362  ·  view source on GitHub ↗

* vm_page_grab_release * * Helper routine for grab functions to release busy on return. */

Source from the content-addressed store, hash-verified

4350 * Helper routine for grab functions to release busy on return.
4351 */
4352static inline void
4353vm_page_grab_release(vm_page_t m, int allocflags)
4354{
4355
4356 if ((allocflags & VM_ALLOC_NOBUSY) != 0) {
4357 if ((allocflags & VM_ALLOC_IGN_SBUSY) != 0)
4358 vm_page_sunbusy(m);
4359 else
4360 vm_page_xunbusy(m);
4361 }
4362}
4363
4364/*
4365 * vm_page_grab_sleep

Callers 5

vm_page_grabFunction · 0.85
vm_page_acquire_unlockedFunction · 0.85
vm_page_grab_pagesFunction · 0.85

Calls 1

vm_page_sunbusyFunction · 0.85

Tested by

no test coverage detected