OSDN Git Service

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