xref: /original-bsd/share/man/man4/man4.i386/mem.4 (revision cde495fc)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)mem.4 6.2 (Berkeley) 5/16/86

MEM 4 "May 16, 1986"
C 4
NAME
mem, kmem - main memory
DESCRIPTION
.lg Mem is a special file that is an image of the main memory of the computer. It may be used, for example, to examine (and even to patch) the system.

Byte addresses in mem are interpreted as physical memory addresses. References to non-existent locations cause errors to be returned.

The file kmem is the same as mem except that kernel virtual memory rather than physical memory is accessed. Only kernel virtual addresses that are mapped to memory are allowed. Examining and patching device registers is likely to lead to unexpected results when read-only or write-only bits are present.

On ISA the I/O memory space begins at physical address 0x000a0000 and runs to 0x00100000. Per-process data for the current process is UPAGES long, and ends at virtual address 0xfe000000.

FILES
/dev/mem

/dev/kmem