blob: d712ca6027ac7aca39b0c0ba149cccd500974663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<table class="head">
<tr>
<td class="head-ltitle">MEM(4)</td>
<td class="head-vol">Device Drivers Manual (x86)</td>
<td class="head-rtitle">MEM(4)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">mem</code>, <code class="Nm">kmem</code> —
<span class="Nd">memory files</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The special file <code class="Nm">/dev/mem</code> 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 <code class="Nm">/dev/mem</code> are allowed.</p>
<p class="Pp">Kernel virtual memory is accessed through the interface
<code class="Nm">/dev/kmem</code> in the same manner as
<code class="Nm">/dev/mem</code>. Only kernel virtual addresses that are
currently mapped to memory are allowed.</p>
<p class="Pp">On ISA the I/O memory space begins at physical address 0x000a0000
and runs to 0x00100000.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="FILES"><a class="permalink" href="#FILES">FILES</a></h1>
<dl class="Bl-tag Bl-compact">
<dt><span class="Pa">/dev/mem</span></dt>
<dd style="width: auto;"> </dd>
<dt><span class="Pa">/dev/kmem</span></dt>
<dd style="width: auto;"> </dd>
</dl>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">mem</code>, <code class="Nm">kmem</code>
files appeared in <span class="Ux">Version 6 AT&T
UNIX</span>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">March 27, 2026</td>
<td class="foot-os">NetBSD 10.1</td>
</tr>
</table>
|