/* * No requirements. */ vm_offset_t kmem_alloc_contig(vm_offset_t size, vm_paddr_t low, vm_paddr_t high, vm_offset_t alignment) { return ((vm_offset_t)contigmalloc_map(size, M_DEVBUF, M_NOWAIT, low, high, alignment, 0ul, &kernel_map)); }
/* * No requirements. */ void * contigmalloc( unsigned long size, /* should be size_t here and for malloc() */ struct malloc_type *type, int flags, vm_paddr_t low, vm_paddr_t high, unsigned long alignment, unsigned long boundary) { return contigmalloc_map(size, type, flags, low, high, alignment, boundary, &kernel_map); }