Allocates general purpose, wired memory in the kernel map.
- macOS 10.0+
Size of the memory requested.
Pointer to the allocated memory, or zero on failure.
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.