1rmalloc_wait(9F) Kernel Functions for Drivers rmalloc_wait(9F)
2
3
4
6 rmalloc_wait - allocate space from a resource map, wait if necessary
7
9 #include <sys/map.h>
10 #include <sys/ddi.h>
11
12
13
14 unsigned long rmalloc_wait(struct map *mp, size_t size);
15
16
18 Architecture independent level 1 (DDI/DKI).
19
21 mp Pointer to the resource map from which space is to be allo‐
22 cated.
23
24
25 size Number of units of space to allocate.
26
27
29 The rmalloc_wait() function requests an allocation of space from a
30 resource map. rmalloc_wait() is similar to the rmalloc(9F) function
31 with the exception that it will wait for space to become available if
32 necessary.
33
35 The rmalloc_wait() function returns the base of the allocated space.
36
38 This function can be called from user, interrupt, or kernel context.
39 However, in most cases rmalloc_wait() should not be called from inter‐
40 rupt context.
41
43 rmalloc(9F), rmallocmap(9F), rmfree(9F), rmfreemap(9F)
44
45
46 Writing Device Drivers
47
48
49
50SunOS 5.11 16 Jan 2006 rmalloc_wait(9F)