blob: eb1e1f86021f52077ad17f5dfd2ecaf8571d32d8 (
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
50
51
52
53
54
55
56
57
58
59
60
|
<table class="head">
<tr>
<td class="head-ltitle">MEM(4)</td>
<td class="head-vol">Device Drivers Manual (vax)</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>,
<code class="Nm">kUmem</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">The file <code class="Nm">/dev/kUmem</code> also refers to kernel
virtual memory, but may be used to access areas mapped to UNIBUS address
space and other I/O areas. It forces all accesses to use word (short
integer) accesses.</p>
<p class="Pp">On the VAX-11/780, the I/O space base address is 20000000(16); on
an 11/750 the I/O space addresses are of the form fxxxxx(16). On all VAX'en
the per-process data size for the current process is
<code class="Dv">UPAGES</code> long and ends at the virtual address
80000000(16).</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>
<dt><span class="Pa">/dev/kUmem</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>.
The file <code class="Nm">kUmem</code> appeared in
<span class="Ux">3.0BSD</span>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">June 5, 1993</td>
<td class="foot-os">NetBSD 10.1</td>
</tr>
</table>
|