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

Function vm_page_trybusy

freebsd/vm/vm_page.c:838–846  ·  view source on GitHub ↗

* vm_page_trybusy * * Helper routine for grab functions to trylock busy. * * Returns true on success and false on failure. */

Source from the content-addressed store, hash-verified

836 * Returns true on success and false on failure.
837 */
838static bool
839vm_page_trybusy(vm_page_t m, int allocflags)
840{
841
842 if ((allocflags & (VM_ALLOC_SBUSY | VM_ALLOC_IGN_SBUSY)) != 0)
843 return (vm_page_trysbusy(m));
844 else
845 return (vm_page_tryxbusy(m));
846}
847
848/*
849 * vm_page_tryacquire

Callers 3

vm_page_tryacquireFunction · 0.85
vm_page_acquire_unlockedFunction · 0.85
vm_page_grab_validFunction · 0.85

Calls 2

vm_page_trysbusyFunction · 0.85
vm_page_tryxbusyFunction · 0.85

Tested by

no test coverage detected