Research V7 development
[unix-history] / usr / man / man4 / mem.4
CommitLineData
70b96c2d
DR
1.TH MEM 4
2.SH NAME
3mem, kmem \- core memory
4.SH DESCRIPTION
5.I Mem
6is a special file that is an image of the core memory
7of the computer.
8It may be used, for example, to examine,
9and even to patch the system.
10.I Kmem
11is the same as
12.I mem
13except that kernel virtual memory
14rather than physical memory is accessed.
15.PP
16Byte addresses
17are interpreted as memory addresses.
18References to non-existent locations return errors.
19.PP
20Examining and patching device registers is likely
21to lead to unexpected results when read-only or write-only
22bits are present.
23.PP
24On PDP11's, the I/O page
25begins at location 0160000 of
26.I kmem
27and per-process data for the current process
28begins at 0140000.
29.SH FILES
30/dev/mem,
31/dev/kmem
32.SH BUGS
33On PDP11's, memory files are accessed one byte
34at a time, an inapproriate method for some
35device registers.