mdoc version three/bsd copyright
authorCynthia A. E. Livingston <cael@ucbvax.Berkeley.EDU>
Fri, 3 May 1991 08:24:09 +0000 (00:24 -0800)
committerCynthia A. E. Livingston <cael@ucbvax.Berkeley.EDU>
Fri, 3 May 1991 08:24:09 +0000 (00:24 -0800)
SCCS-vsn: share/man/man4/man4.i386/mem.4 5.3

usr/src/share/man/man4/man4.i386/mem.4

index 8192f9c..064020c 100644 (file)
@@ -1,43 +1,56 @@
 .\" Copyright (c) 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
 .\" Copyright (c) 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
-.\" %sccs.include.proprietary.roff%
+.\" %sccs.include.redist.roff%
 .\"
 .\"
-.\"    @(#)mem.4       5.2 (Berkeley) %G%
+.\"    @(#)mem.4       5.3 (Berkeley) %G%
 .\"
 .\"
-.TH MEM 4 ""
-.UC 4
-.SH NAME
-mem, kmem \- main memory
-.SH DESCRIPTION
-.lg
-.I Mem
-is a special file that is an image of the main memory
-of the computer.
-It may be used, for example, to examine
-(and even to patch) the system.
-.PP
-Byte addresses in
-.I mem
-are interpreted as physical memory addresses.
-References to non-existent locations cause errors to be returned.
-.PP
-The file
-.I kmem
-is the same as 
-.I mem
-except that kernel virtual memory
-rather than physical memory is accessed.
-Only kernel virtual addresses that are mapped to memory are allowed.
-Examining and patching device registers is likely
-to lead to unexpected results when read-only or write-only
-bits are present.
-.PP
-On ISA the I/O memory space begins at physical address 0x000a0000
+.Dd 
+.Dt MEM 4 i386
+.Os
+.Sh NAME
+.Nm mem ,
+.Nm kmem
+.Nd memory files
+.Sh DESCRIPTION
+The special file
+.Nm /dev/mem
+is an interface to the physical memory of the computer.
+Byte offsets in this file are interpreted as physical memory addresses.
+Reading and writing this file is equivalent to reading and writing
+memory itself.
+Only offsets within the bounds of
+.Nm /dev/mem
+are allowed.
+.Pp
+Kernel virtual memory is accessed through the interface
+.Nm /dev/kmem
+in the same manner as
+.Nm /dev/mem .
+Only kernel virtual addresses that are currently mapped to memory are allowed.
+.Pp
+On
+.Tn ISA
+the
+.Tn I/O
+memory space begins at physical address 0x000a0000
 and runs to 0x00100000.
 and runs to 0x00100000.
-Per-process data for the current process is UPAGES long, and ends at virtual
+The
+per-process data
+size
+for the current process
+is
+.Dv UPAGES
+long, and ends at virtual
 address 0xfe000000.
 address 0xfe000000.
-.SH FILES
-/dev/mem
-.br
-/dev/kmem
+.Sh FILES
+.Bl -tag -width Pa -compact
+.It Pa /dev/mem
+.It Pa /dev/kmem
+.El
+.Sh HISTORY
+The
+.Nm mem ,
+.Nm kmem
+files appeared in
+.At v6 .