This commit is contained in:
Michael Kerrisk 2006-04-21 00:54:28 +00:00
parent aa949e2d59
commit e8046fd008
1 changed files with 12 additions and 4 deletions

View File

@ -25,12 +25,14 @@
.SH NAME
mem, kmem, port \- system memory, kernel memory and system ports
.SH DESCRIPTION
\fBMem\fP is a character device file
\fBmem\fP is a character device file
that is an image of the main memory of the
computer. It may be used, for example, to examine (and even patch) the
system.
.LP
Byte addresses in mem are interpreted as physical memory addresses.
Byte addresses in
.B mem
are interpreted as physical memory addresses.
References to non-existent locations cause errors to be returned.
.LP
Examining and patching is likely to lead to unexpected results
@ -45,7 +47,11 @@ chown root:kmem /dev/mem
.sp
.RE
.LP
The file kmem is the same as mem, except that the kernel virtual memory
The file
.B kmem
is the same as
.BR mem ,
except that the kernel virtual memory
rather than physical memory is accessed.
.LP
It is typically created by:
@ -57,7 +63,9 @@ chown root:kmem /dev/kmem
.sp
.RE
.LP
\fBPort\fP is similar to mem, but the IO ports are accessed.
\fBport\fP is similar to
.BR mem ,
but the IO ports are accessed.
.LP
It is typically created by:
.RS