]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/mem.4
getwchar.3, infnan.3, iswalnum.3, iswalpha.3, iswcntrl.3, iswctype.3, iswdigit.3...
[thirdparty/man-pages.git] / man4 / mem.4
CommitLineData
3d54a910
MK
1.\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2.\" Fri Apr 2 11:32:09 MET DST 1993
fea681da 3.\"
1dd72f9c 4.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
fea681da
MK
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
c715f741
MK
21.\" License along with this manual; if not, see
22.\" <http://www.gnu.org/licenses/>.
6a8d8745 23.\" %%%LICENSE_END
fea681da
MK
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
28mem, kmem, port \- system memory, kernel memory and system ports
29.SH DESCRIPTION
35cfd378
MK
30.B mem
31is a character device file
c13182ef
MK
32that is an image of the main memory of the computer.
33It may be used, for example, to examine (and even patch) the system.
fea681da 34.LP
c13182ef
MK
35Byte addresses in
36.B mem
e8046fd0 37are interpreted as physical memory addresses.
c382a365 38References to nonexistent locations cause errors to be returned.
fea681da
MK
39.LP
40Examining and patching is likely to lead to unexpected results
41when read-only or write-only bits are present.
42.LP
43It is typically created by:
44.RS
45.sp
4d9b6984 46mknod \-m 660 /dev/mem c 1 1
fea681da 47.br
9df0bd1d 48chown root:kmem /dev/mem
fea681da
MK
49.RE
50.LP
c13182ef
MK
51The file
52.B kmem
53is the same as
54.BR mem ,
e8046fd0 55except that the kernel virtual memory
fea681da
MK
56rather than physical memory is accessed.
57.LP
58It is typically created by:
59.RS
60.sp
4d9b6984 61mknod \-m 640 /dev/kmem c 1 2
fea681da 62.br
9df0bd1d 63chown root:kmem /dev/kmem
fea681da
MK
64.RE
65.LP
35cfd378
MK
66.B port
67is similar to
c13182ef 68.BR mem ,
a28e26a1 69but the I/O ports are accessed.
fea681da
MK
70.LP
71It is typically created by:
72.RS
73.sp
4d9b6984 74mknod \-m 660 /dev/port c 1 4
fea681da
MK
75.br
76chown root:mem /dev/port
fea681da
MK
77.RE
78.SH FILES
79.I /dev/mem
80.br
81.I /dev/kmem
82.br
83.I /dev/port
47297adb 84.SH SEE ALSO
fea681da
MK
85.BR chown (1),
86.BR mknod (1),
87.BR ioperm (2)