Lines Matching full:map
8 rmalloc \- allocate space from a resource map
12 #include <sys/map.h>
17 \fBunsigned long\fR \fBrmalloc\fR(\fBstruct map *\fR\fImp\fR, \fBsize_t\fR \fIsize\fR);
31 Resource map from where the resource is drawn.
47 previously defined and initialized resource map. The map itself is allocated by
50 functions used for resource map management. The other functions include:
57 Allocate space from a resource map, wait if necessary.
66 Return previously allocated space to a map.
75 Allocate a resource map and initialize it.
84 Allocate a resource map and initialize it. Wait if necessary.
93 Deallocate a resource map.
98 The \fBrmalloc()\fR function allocates space from a resource map in terms of
99 arbitrary units. The system maintains the resource map by size and index,
117 \fBExample 1 \fRIllustrating the principles of map management
120 The following example is a simple memory map, but it illustrates the principles
121 of map management. A driver allocates and initializes the map by calling both
123 is called to establish the number of slots or entries in the map, and
124 \fBrmfree\fR(9F) to initialize the resource area the map is to manage. The
139 Uses \fBrmallocmap\fR(9F) to configure the total number of entries in the map,
149 5 static struct map *xx_mp; /* Resource map */
166 20 * Allocate the resource map with number
167 21 * of slots in map.
172 26 * Initialize the resource map with total
212 Space is allocated from the resource map through the \fBrmalloc()\fR function
245 6 static struct map *xx_mp; /* Resource map */
275 35 * return buffer to map and return error code.