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

Function vm_page_alloc

freebsd/vm/vm_page.c:1976–1982  ·  view source on GitHub ↗

* vm_page_alloc: * * Allocate and return a page that is associated with the specified * object and offset pair. By default, this page is exclusive busied. * * The caller must always specify an allocation class. * * allocation classes: * VM_ALLOC_NORMAL normal process request * VM_ALLOC_SYSTEM system *really* needs a page * VM_ALLOC_INTERRUPT interrupt time request * * optional alloc

Source from the content-addressed store, hash-verified

1974 * VM_ALLOC_ZERO prefer a zeroed page
1975 */
1976vm_page_t
1977vm_page_alloc(vm_object_t object, vm_pindex_t pindex, int req)
1978{
1979
1980 return (vm_page_alloc_after(object, pindex, req, object != NULL ?
1981 vm_radix_lookup_le(&object->rtree, pindex) : NULL));
1982}
1983
1984vm_page_t
1985vm_page_alloc_domain(vm_object_t object, vm_pindex_t pindex, int domain,

Callers 15

__CONCAT(PMTYPE, pinit)Function · 0.85
_pmap_allocpteFunction · 0.85
get_pv_entryFunction · 0.85
pmap_demote_pdeFunction · 0.85
pmap_trm_importFunction · 0.85
pmap_init_trmFunction · 0.85
pmap_pinit_typeFunction · 0.85
pmap_allocpte_nosleepFunction · 0.85
pmap_growkernelFunction · 0.85
get_pv_entryFunction · 0.85
reserve_pv_entriesFunction · 0.85

Calls 2

vm_page_alloc_afterFunction · 0.85
vm_radix_lookup_leFunction · 0.85

Tested by

no test coverage detected