|RMALLOC_WAIT(9F)||Kernel Functions for Drivers||RMALLOC_WAIT(9F)|
#include <sys/map.h> #include <sys/ddi.h> unsigned long rmalloc_wait(struct map *mp, size_t size);
Architecture independent level 1 (DDI/DKI).
The rmalloc_wait() function requests an allocation of space from a resource map. rmalloc_wait() is similar to the rmalloc(9F) function with the exception that it will wait for space to become available if necessary.
The rmalloc_wait() function returns the base of the allocated space.
This function can be called from user, interrupt, or kernel context. However, in most cases rmalloc_wait() should not be called from interrupt context.
Writing Device Drivers
|January 16, 2006||OmniOS|