FreeBSD/sys/kern/kern_malloc.c
/*
 *	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.
 */
Allocate a block of physically contiguous memory.

If M_NOWAIT is set, this routine will not block and return NULL if
the allocation fails.
Allocate a block of physically contiguous memory . If M_NOWAIT is set this routine will not block and return NULL if the allocation fails .
void *
contigmalloc(unsigned long size, struct malloc_type *type, int flags,
    vm_paddr_t low, vm_paddr_t high, unsigned long alignment,
    vm_paddr_t boundary)
{
	void *ret;
	ret = (void *)kmem_alloc_contig(kernel_arena, size, flags, low, high,
	    alignment, boundary, VM_MEMATTR_DEFAULT);
	if (ret != NULL)
		malloc_type_allocated(type, round_page(size));
	return (ret);
}
void * contigmalloc ( unsigned long size , struct malloc_type * type , int flags , vm_paddr_t low , vm_paddr_t high , unsigned long alignment , vm_paddr_t boundary ) { void * ret ; ret = ( void * ) kmem_alloc_contig ( kernel_arena , size , flags , low , high , alignment , boundary , VM_MEMATTR_DEFAULT ) ; if ( ret != NULL ) malloc_type_allocated ( type , round_page ( size ) ) ; return ( ret ) ; }
contigmalloc:
      Allocate a block of physically contiguous memory.
contigmalloc : Allocate a block of physically contiguous memory .