 |
Index for Section 9r |
|
 |
Alphabetical listing for R |
|
 |
Bottom of page |
|
rminit(9r)
NAME
rminit - General: Initializes a resource map
SYNOPSIS
void rminit(
struct map *map_struct,
long size,
long addr,
char *name,
int mapsize );
ARGUMENTS
map_struct
Specifies a pointer to a map structure to be initialized by a call to
rminit.
size
Specifies the size elements used to initialize the resource map.
addr
Specifies the address that identifies the start of the free elements.
name
Specifies the name for the resource map. The rminit routine uses this
name in warning messages when the map overflows.
mapsize
Specifies the maximum number of fragments.
DESCRIPTION
The rminit routine initializes the specified resource map to have mapsize -
2 segments. The routine also identifies this resource map with the string
passed to the name argument. It prints this name if the slots become so
fragmented that space is lost.
The resource map itself is initialized with size elements free, starting at
the address specified in addr.
NOTES
The caller is responsible for providing any locking necessary for the map
structure that the system passes to the rminit routine.
RETURN VALUES
None
SEE ALSO
Routines: rmalloc(9r), rmfree(9r), rmget(9r)
 |
Index for Section 9r |
|
 |
Alphabetical listing for R |
|
 |
Top of page |
|