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

Function vm_page_tryacquire

freebsd/vm/vm_page.c:855–864  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

853 * Returns true on success and false on failure.
854 */
855static inline bool
856vm_page_tryacquire(vm_page_t m, int allocflags)
857{
858 bool locked;
859
860 locked = vm_page_trybusy(m, allocflags);
861 if (locked && (allocflags & VM_ALLOC_WIRED) != 0)
862 vm_page_wire(m);
863 return (locked);
864}
865
866/*
867 * vm_page_busy_acquire:

Callers 3

vm_page_busy_acquireFunction · 0.85
vm_page_grabFunction · 0.85
vm_page_grab_pagesFunction · 0.85

Calls 2

vm_page_trybusyFunction · 0.85
vm_page_wireFunction · 0.85

Tested by

no test coverage detected