SVR5
rmsetwant(D3)
rmsetwant --
set the map's wait flag for a wakeup
Synopsis (Not in current DDI version)
#include <sys/map.h>
#include <sys/ddi.h>
void rmsetwant(struct map *mp);
Description
The rmsetwant function increments the counter on the wait flag
of the map pointed to by mp.
Arguments
mp-
Pointer to the map from which the driver is waiting for space.
Return values
None
Usage
rmsetwant is typically called from the driver after an unsuccessful
attempt to allocate space from the map using
rmalloc(D3).
The driver should sleep on mp after calling
rmsetwant. When the
rmfree(D3)
function returns space to
the map, it wakes up any processes waiting for space.
Context and synchronization
User or blockable
context.
Examples
See
rmalloc(D3)
for an example of rmsetwant.
Hardware applicability
All
Version applicability
ddi:
1, 2, 4
Differences between versions
rmalloc_wait(D3)
replaces rmsetwant.
References
rmalloc(D3),
rmalloc_wait(D3),
rmfree(D3),
rminit(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005