Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ map(D4DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

map(D4DK)  —  

.IX \f4map\fP(D4DK)

NAME

map − private memory map structure

SYNOPSIS

#include <sys/map.h>

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 prefixmap.  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

rmallocmap defines a map structure and initializes a map table

rmalloc_wait allocates space from a defined and initialized map

rmfree returns previously allocated space to map

rmfreemap frees the map structure allocated by rmallocmap

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

rmalloc(D3DK), rmfree(D3DK), rminit(D3DK), rmsetwant(D3DK), rmwant(D3DK)

DDI/DKI

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026