IOMalloc
Allocates general purpose, wired memory in the kernel map.
Declaration
void * IOMalloc(vm_size_t size);Parameters
- size:
Size of the memory requested.
Return Value
Pointer to the allocated memory, or zero on failure.
Discussion
This is a general purpose utility to allocate memory in the kernel. There are no alignment guarantees given on the returned memory, and alignment may vary depending on the kernel configuration. This function may block and so should not be called from interrupt level or while a simple lock is held.