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

Function contigmalloc_domainset

freebsd/kern/kern_malloc.c:470–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470void *
471contigmalloc_domainset(unsigned long size, struct malloc_type *type,
472 struct domainset *ds, int flags, vm_paddr_t low, vm_paddr_t high,
473 unsigned long alignment, vm_paddr_t boundary)
474{
475 void *ret;
476
477 ret = (void *)kmem_alloc_contig_domainset(ds, size, flags, low, high,
478 alignment, boundary, VM_MEMATTR_DEFAULT);
479 if (ret != NULL)
480 malloc_type_allocated(type, round_page(size));
481 return (ret);
482}
483
484/*
485 * contigfree:

Callers 1

alloc_bounce_pagesFunction · 0.85

Calls 2

malloc_type_allocatedFunction · 0.85

Tested by

no test coverage detected