|
Kernel Functions for Drivers | rmalloc_wait(9F) |
| rmalloc_wait - allocate space from a resource map, wait if necessary |
SYNOPSIS
|
#include <sys/map.h>
#include <sys/ddi.h>
unsigned long rmalloc_wait(struct map *mp, size_t size); |
|
Architecture independent level 1 (DDI/DKI).
|
|
-
mp
- Pointer to the resource map from which space is to be allocated.
-
size
- Number of units of space to allocate.
|
|
rmalloc_wait() 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.
|
|
rmalloc_wait() returns the base of the allocated space.
|
|
This function can be called from user or interrupt context. However, in most cases rmalloc_wait() should be called from user context only.
|
| |