]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man4/mem.4
Wrapped long lines, wrapped at sentence boundaries; stripped trailing
[thirdparty/man-pages.git] / man4 / mem.4
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de), Fri Apr 2 11:32:09 MET DST 1993
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21 .\" USA.
22 .\"
23 .\" Modified Sat Jul 24 16:59:10 1993 by Rik Faith (faith@cs.unc.edu)
24 .TH MEM 4 1992-11-21 "Linux" "Linux Programmer's Manual"
25 .SH NAME
26 mem, kmem, port \- system memory, kernel memory and system ports
27 .SH DESCRIPTION
28 \fBmem\fP is a character device file
29 that is an image of the main memory of the computer.
30 It may be used, for example, to examine (and even patch) the system.
31 .LP
32 Byte addresses in
33 .B mem
34 are interpreted as physical memory addresses.
35 References to non-existent locations cause errors to be returned.
36 .LP
37 Examining and patching is likely to lead to unexpected results
38 when read-only or write-only bits are present.
39 .LP
40 It is typically created by:
41 .RS
42 .sp
43 mknod \-m 660 /dev/mem c 1 1
44 .br
45 chown root:kmem /dev/mem
46 .RE
47 .LP
48 The file
49 .B kmem
50 is the same as
51 .BR mem ,
52 except that the kernel virtual memory
53 rather than physical memory is accessed.
54 .LP
55 It is typically created by:
56 .RS
57 .sp
58 mknod \-m 640 /dev/kmem c 1 2
59 .br
60 chown root:kmem /dev/kmem
61 .RE
62 .LP
63 \fBport\fP is similar to
64 .BR mem ,
65 but the I/O ports are accessed.
66 .LP
67 It is typically created by:
68 .RS
69 .sp
70 mknod \-m 660 /dev/port c 1 4
71 .br
72 chown root:mem /dev/port
73 .RE
74 .SH FILES
75 .I /dev/mem
76 .br
77 .I /dev/kmem
78 .br
79 .I /dev/port
80 .SH "SEE ALSO"
81 .BR chown (1),
82 .BR mknod (1),
83 .BR ioperm (2)