1MEM(4) Kernel Interfaces Manual MEM(4)
2
3
4
6 mem, kmem - core memory
7
9 Mem is a special file that is an image of the core memory of the com‐
10 puter. It may be used, for example, to examine, and even to patch the
11 system. Kmem is the same as mem except that kernel virtual memory
12 rather than physical memory is accessed.
13
14 Byte addresses are interpreted as memory addresses. References to non-
15 existent locations return errors.
16
17 Examining and patching device registers is likely to lead to unexpected
18 results when read-only or write-only bits are present.
19
20 On PDP11's, the I/O page begins at location 0160000 of kmem and per-
21 process data for the current process begins at 0140000.
22
24 /dev/mem, /dev/kmem
25
27 On PDP11's, memory files are accessed one byte at a time, an inapprori‐
28 ate method for some device registers.
29
30
31
32 MEM(4)