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

Function pmap_large_map_getva

freebsd/amd64/amd64/pmap.c:10210–10222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10208}
10209
10210static int
10211pmap_large_map_getva(vm_size_t len, vm_offset_t align, vm_offset_t phase,
10212 vmem_addr_t *vmem_res)
10213{
10214
10215 /*
10216 * Large mappings are all but static. Consequently, there
10217 * is no point in waiting for an earlier allocation to be
10218 * freed.
10219 */
10220 return (vmem_xalloc(large_vmem, len, align, phase, 0, VMEM_ADDR_MIN,
10221 VMEM_ADDR_MAX, M_NOWAIT | M_BESTFIT, vmem_res));
10222}
10223
10224int
10225pmap_large_map(vm_paddr_t spa, vm_size_t len, void **addr,

Callers 1

pmap_large_mapFunction · 0.85

Calls 1

vmem_xallocFunction · 0.85

Tested by

no test coverage detected