 |
Index for Section 9r |
|
 |
Alphabetical listing for R |
|
 |
Bottom of page |
|
rmalloc(9r)
NAME
rmalloc - General: Allocates size units from the given resource map
SYNOPSIS
long rmalloc(
struct map *map_struct,
long size );
ARGUMENTS
map_struct
Specifies a pointer to a map structure that was previously initialized
by a call to rminit.
size
Specifies the size of the units to allocate.
DESCRIPTION
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.
NOTES
The caller is responsible for providing any locking necessary for the map
structure that the system passes to the rmalloc routine.
RETURN VALUES
The rmalloc routine returns the base of the allocated space. It returns an
error if no space could be allocated.
SEE ALSO
Routines: rmfree(9r), rmget(9r), rminit(9r)
 |
Index for Section 9r |
|
 |
Alphabetical listing for R |
|
 |
Top of page |
|