rmsetwant(D3) rmsetwant(D3)
NAME
rmsetwant - set the map's wait flag for a wakeup
SYNOPSIS
#include <sys/map.h>
#include <sys/ddi.h>
void rmsetwant(struct map *mp);
Arguments
mp Pointer to the map from which the driver is waiting
for space.
DESCRIPTION
The rmsetwant function increments the counter on the wait flag
of the map pointed to by mp.
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.
Level
Base only.
Synchronization Constraints
Does not sleep.
Examples
See rmalloc(D3) for an example of rmsetwant.
REFERENCES
rmalloc(D3), rmalloc_wait(D3), rmfree(D3), rminit(D3)
NOTICES
Portability
All processors
Copyright 1994 Novell, Inc. Page 1
rmsetwant(D3) rmsetwant(D3)
Applicability
ddi: 1, 2, 4
rmalloc_wait(D3) replaces rmsetwant.
Copyright 1994 Novell, Inc. Page 2