1MEM(4)                     Linux Programmer's Manual                    MEM(4)
2
3
4

NAME

6       mem, kmem, port - system memory, kernel memory and system ports
7

DESCRIPTION

9       mem  is  a character device file that is an image of the main memory of
10       the computer.  It may be used, for example, to examine (and even patch)
11       the system.
12
13       Byte  addresses  in  mem  are interpreted as physical memory addresses.
14       References to nonexistent locations cause errors to be returned.
15
16       Examining and patching is likely to lead  to  unexpected  results  when
17       read-only or write-only bits are present.
18
19       It is typically created by:
20
21              mknod -m 660 /dev/mem c 1 1
22              chown root:kmem /dev/mem
23
24       The file kmem is the same as mem, except that the kernel virtual memory
25       rather than physical memory is accessed.
26
27       It is typically created by:
28
29              mknod -m 640 /dev/kmem c 1 2
30              chown root:kmem /dev/kmem
31
32       port is similar to mem, but the I/O ports are accessed.
33
34       It is typically created by:
35
36              mknod -m 660 /dev/port c 1 4
37              chown root:mem /dev/port
38

FILES

40       /dev/mem
41       /dev/kmem
42       /dev/port
43

SEE ALSO

45       chown(1), mknod(1), ioperm(2)
46

COLOPHON

48       This page is part of release 3.22 of the Linux  man-pages  project.   A
49       description  of  the project, and information about reporting bugs, can
50       be found at http://www.kernel.org/doc/man-pages/.
51
52
53
54Linux                             1992-11-21                            MEM(4)
Impressum