PMAP(8)

NAME
pmap - display or alter parameters of virtual-to-physical mapping devices

SYNOPSIS
/etc/pmap file [ paddr size [ type ] ]

DESCRIPTION
File must be a character special file associated with the pmap device driver (see pmap(4)). Pmap sets the parameters of the indicated file to those specified (if any) and then displays all the file's parameters.

The following parameters can be changed (only by the superuser, and only while the file is not in use):

paddr
    The starting physical address of the region associated with the file. Must be hexadecimal, and must be a multiple of the system page size, as returned by getpagesize(2).

size
    The (hexadecimal) size of the region, in bytes. Must be hexadecimal, and must be a multiple of the system page size.

type
    Must be either ``npmem'' (non-paged memory) or ``phys'' (physical). The PMAP_NPMEM bit for this file is set or cleared as indicated.

Pmap also reports whether the file is currently mapped and whether it is currently open for exclusive access.

NOTE: This command allows the superuser to associate a file with any range of physical addresses, including MULTIBUS mapping registers, nonexistent memory, etc. Specifying incorrect values for paddr or size can lead to catastrophic results.

FILES
/dev/alm/almnn    Atomic Lock Memory
others    Other pmap files are application-specific.

SEE ALSO
pmap(4), getpagesize(2)

DIAGNOSTICS
``Not a typewriter'' indicates that the specified file is not a pmap device.