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

Function contig_alloc

freebsd/vm/uma_core.c:1858–1866  ·  view source on GitHub ↗

* Allocate physically contiguous pages. */

Source from the content-addressed store, hash-verified

1856 * Allocate physically contiguous pages.
1857 */
1858static void *
1859contig_alloc(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *pflag,
1860 int wait)
1861{
1862
1863 *pflag = UMA_SLAB_KERNEL;
1864 return ((void *)kmem_alloc_contig_domainset(DOMAINSET_FIXED(domain),
1865 bytes, wait, 0, ~(vm_paddr_t)0, 1, 0, VM_MEMATTR_DEFAULT));
1866}
1867#else
1868static void *
1869pcpu_page_alloc(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *pflag,

Callers

nothing calls this directly

Calls 2

page_allocFunction · 0.85

Tested by

no test coverage detected