map(9S)
NAME
map − private memory map structure
SYNOPSIS
#include <sys/map.h>
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
DESCRIPTION
The map structure defines the size and index into a private space management map. The private map is declared as an instance of the map structure using the driver prefix in the form prefix map. The size is defined in the m_size field as the number of arbitrary units used to make up the map. The index is defined in m_addr as the first available unit of the map.
Private maps are managed through a set five functions:
rmalloc allocates space from a defined and initialized map
rmfree returns previously allocated space to map
rminit defines a map structure and initializes a map table
rmwant returns the number of processes waiting for free space
rmsetwant increments the count of the number of processes waiting for free space in the map
Private maps can be made up of any units appropriate for the specific uses of the map. For example, units may be byte addresses, pages of memory, or blocks. The map itself does not define the resource, and the size of the map is not related to the size of the map structure.
STRUCTURE MEMBERS
| unsigned long | m_size | /∗ number of units available ∗/ |
| unsigned long | m_addr | /∗ address of first available unit ∗/ |
SEE ALSO
SunOS 5.1 — Last change: 11 Apr 1991