rmalloc_wait(D3)rmalloc_wait(D3)NAMErmalloc_wait - allocate space from a private space management map
SYNOPSIS
#include <sys/types.h>
#include <sys/map.h>
#include <sys/ddi.h>
ulong_t rmalloc_wait(struct map *mp, size_t size);
Arguments
mp Pointer to map to resource map.
size Number of units to allocate.
DESCRIPTIONrmalloc_wait allocates space from a private map previously allocated
using rmallocmap(D3).
Return Values
rmalloc_wait returns the base of the allocated space.
USAGErmalloc_wait is identical to rmalloc(D3), except that a call to
rmalloc_wait will sleep (uninterruptible by signals), if necessary, until
space becomes available.
Space allocated using rmalloc_wait may be returned to the map using
rmfree(D3).
Level
Base only.
Synchronization Constraints
May sleep.
Driver-defined basic locks and read/write locks may not be held across
calls to this function.
Driver-defined sleep locks may be held across calls to this function, but
the driver writer must be cautious to avoid deadlock between the process
holding the lock and trying to acquire the resource and another process
holding the resource and trying to acquire the lock.
REFERENCESrmalloc(D3), rmallocmap(D3), rmfree(D3), rmfreemap(D3)
Page 1