rmalloc - General: Allocates size units from the given
resource map
long rmalloc(
struct map *map_struct,
long size );
Specifies a pointer to a map structure that was previously
initialized by a call to rminit. Specifies the size of
the units to allocate.
The rmalloc routine allocates size units from the given
resource map. In a map, the addresses are increasing, and
the list is terminated by a zero size. The actual units
managed by the map are arbitrary and can be map registers,
bytes, blocks, and so forth.
The caller is responsible for providing any locking necessary
for the map structure that the system passes to the
rmalloc routine.
The rmalloc routine returns the base of the allocated
space. It returns an error if no space could be allocated.
Routines: rmfree(9r), rmget(9r), rminit(9r)
rmalloc(9r)
[ Back ] |