kern_malloc(D3X)
kern_malloc - allocate kernel virtual memory
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME kern_malloc - allocate kernel virtual memory SYNOPSIS #include "sys/types.h" void *kern_malloc(int num_bytes); DESCRIPTION kern_malloc allocates num_bytes of kernel virtual memory. If necessary, it sleeps until the entire requested memory is available. Therefore, do not call this function from an interrupt routine. Memory is not physically contiguous. Return Values Returns a pointer to the requested memory. See Also kern_calloc(D3X), kern_free(D3X), kmem_alloc(D3) Note Drivers that use DMA should use kmem_alloc(D3) to allocate buffers for DMA and free that memory with kmem_free(D3). For a discussion, see kmem_alloc(D3).