Annotated edit history of
kmem(4) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
MEM |
|
|
2 |
!!!MEM |
|
|
3 |
NAME |
|
|
4 |
DESCRIPTION |
|
|
5 |
FILES |
|
|
6 |
SEE ALSO |
|
|
7 |
---- |
|
|
8 |
!!NAME |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
mem, kmem, port - system memory, kernel memory and system ports |
|
|
12 |
!!DESCRIPTION |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
__Mem__ is a character device file that is an image of |
|
|
16 |
the main memory of the computer. It may be used, for |
|
|
17 |
example, to examine (and even patch) the |
|
|
18 |
system. |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
Byte addresses in mem are interpreted as physical memory |
|
|
22 |
addresses. References to non-existent locations cause errors |
|
|
23 |
to be returned. |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
Examining and patching is likely to lead to unexpected |
|
|
27 |
results when read-only or write-only bits are |
|
|
28 |
present. |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
It is typically created by: |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
mknod -m 660 /dev/mem c 1 1 |
|
|
35 |
chown root:kmem /dev/mem |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
The file kmem is the same as mem, except that the kernel |
|
|
39 |
virtual memory rather than physical memory is |
|
|
40 |
accessed. |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
It is typically created by: |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
mknod -m 640 /dev/kmem c 1 2 |
|
|
47 |
chown root:kmem /dev/kmem |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
__Port__ is similar to mem, but the IO ports are |
|
|
51 |
accessed. |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
It is typically created by: |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
mknod -m 660 /dev/port c 1 4 |
|
|
58 |
chown root:mem /dev/port |
|
|
59 |
!!FILES |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
''/dev/mem |
|
|
63 |
/dev/kmem |
|
|
64 |
/dev/port'' |
|
|
65 |
!!SEE ALSO |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
chown(1), mknod(1), |
|
|
69 |
ioperm(2) |
|
|
70 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.