rmget(9r)rmget(9r)NAMErmget - General: Allocates size units from the given resource map
SYNOPSIS
int rmget(
struct map *map_struct,
long size,
long addr );
ARGUMENTS
Specifies a pointer to a map structure that was previously initialized
by a call to rminit. Specifies the size of the units to allocate.
Specifies the address at which to allocate the space.
DESCRIPTION
The rmget routine allocates the number of units specified in size,
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 rmget routine.
RETURN VALUES
Upon successful completion, rmget returns the starting address, addr.
Otherwise, it returns the value 0 (zero).
SEE ALSO
Routines: rmalloc(9r), rmfree(9r), rminit(9r)rmget(9r)