mirror of https://github.com/mkerrisk/man-pages
mem.4: Minor wording and formatting fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
de347a67a8
commit
2174e8e353
16
man4/mem.4
16
man4/mem.4
|
@ -27,20 +27,20 @@
|
||||||
.SH NAME
|
.SH NAME
|
||||||
mem, kmem, port \- system memory, kernel memory and system ports
|
mem, kmem, port \- system memory, kernel memory and system ports
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B mem
|
.IR /dev/mem
|
||||||
is a character device file
|
is a character device file
|
||||||
that is an image of the main memory of the computer.
|
that is an image of the main memory of the computer.
|
||||||
It may be used, for example, to examine (and even patch) the system.
|
It may be used, for example, to examine (and even patch) the system.
|
||||||
.LP
|
.LP
|
||||||
Byte addresses in
|
Byte addresses in
|
||||||
.B mem
|
.IR /dev/mem
|
||||||
are interpreted as physical memory addresses.
|
are interpreted as physical memory addresses.
|
||||||
References to nonexistent locations cause errors to be returned.
|
References to nonexistent locations cause errors to be returned.
|
||||||
.LP
|
.LP
|
||||||
Examining and patching is likely to lead to unexpected results
|
Examining and patching is likely to lead to unexpected results
|
||||||
when read-only or write-only bits are present.
|
when read-only or write-only bits are present.
|
||||||
.LP
|
.LP
|
||||||
Since 2.6.26, and depending on the architecture, the
|
Since Linux 2.6.26, and depending on the architecture, the
|
||||||
.B CONFIG_STRICT_DEVMEM
|
.B CONFIG_STRICT_DEVMEM
|
||||||
kernel configuration option limits the areas
|
kernel configuration option limits the areas
|
||||||
which can be accessed through this file.
|
which can be accessed through this file.
|
||||||
|
@ -56,12 +56,12 @@ chown root:kmem /dev/mem
|
||||||
.RE
|
.RE
|
||||||
.LP
|
.LP
|
||||||
The file
|
The file
|
||||||
.B kmem
|
.IR /dev/kmem
|
||||||
is the same as
|
is the same as
|
||||||
.BR mem ,
|
.IR /dev/mem ,
|
||||||
except that the kernel virtual memory
|
except that the kernel virtual memory
|
||||||
rather than physical memory is accessed.
|
rather than physical memory is accessed.
|
||||||
Since 2.6.26, this file is available only if the
|
Since Linux 2.6.26, this file is available only if the
|
||||||
.B CONFIG_DEVKMEM
|
.B CONFIG_DEVKMEM
|
||||||
kernel configuration option is enabled.
|
kernel configuration option is enabled.
|
||||||
.LP
|
.LP
|
||||||
|
@ -73,9 +73,9 @@ mknod \-m 640 /dev/kmem c 1 2
|
||||||
chown root:kmem /dev/kmem
|
chown root:kmem /dev/kmem
|
||||||
.RE
|
.RE
|
||||||
.LP
|
.LP
|
||||||
.B port
|
.IR /dev/port
|
||||||
is similar to
|
is similar to
|
||||||
.BR mem ,
|
.IR /dev/mem ,
|
||||||
but the I/O ports are accessed.
|
but the I/O ports are accessed.
|
||||||
.LP
|
.LP
|
||||||
It is typically created by:
|
It is typically created by:
|
||||||
|
|
Loading…
Reference in New Issue