* 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. */
| 454 | * the allocation fails. |
| 455 | */ |
| 456 | void * |
| 457 | contigmalloc(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 | |
| 470 | void * |
| 471 | contigmalloc_domainset(unsigned long size, struct malloc_type *type, |
no test coverage detected