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

Function contigmalloc

freebsd/kern/kern_malloc.c:456–468  ·  view source on GitHub ↗

* contigmalloc: * * Allocate a block of physically contiguous memory. * * If M_NOWAIT is set, this routine will not block and return NULL if * the allocation fails. */

Source from the content-addressed store, hash-verified

454 * the allocation fails.
455 */
456void *
457contigmalloc(unsigned long size, struct malloc_type *type, int flags,
458 vm_paddr_t low, vm_paddr_t high, unsigned long alignment,
459 vm_paddr_t boundary)
460{
461 void *ret;
462
463 ret = (void *)kmem_alloc_contig(size, flags, low, high, alignment,
464 boundary, VM_MEMATTR_DEFAULT);
465 if (ret != NULL)
466 malloc_type_allocated(type, round_page(size));
467 return (ret);
468}
469
470void *
471contigmalloc_domainset(unsigned long size, struct malloc_type *type,

Callers 15

XX_MallocSmartInitFunction · 0.85
alloc_bounce_pagesFunction · 0.85
xlp_rsa_initFunction · 0.85
svm_initFunction · 0.85
alloc_bounce_pagesFunction · 0.85
gicv3_its_cmdq_initFunction · 0.85
gicv3_its_table_initFunction · 0.85
gicv3_its_conftable_initFunction · 0.85
its_device_getFunction · 0.85
smmu_init_queueFunction · 0.85
smmu_init_cdFunction · 0.85

Calls 2

malloc_type_allocatedFunction · 0.85
kmem_alloc_contigFunction · 0.50

Tested by

no test coverage detected