Skip to content

Commit 29a87d3

Browse files
author
deployBot
committed
Deploy at Fri Mar 29 11:58:58 UTC 2024
1 parent e7bf48c commit 29a87d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+183
-137
lines changed

genindex.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<!DOCTYPE html>
3-
<html class="writer-html4" lang="en" >
3+
<html class="writer-html4" lang="zh-CN" >
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -16,7 +16,7 @@
1616
var DOCUMENTATION_OPTIONS = {
1717
URL_ROOT:'./',
1818
VERSION:'',
19-
LANGUAGE:'None',
19+
LANGUAGE:'zh-CN',
2020
COLLAPSE_INDEX:false,
2121
FILE_SUFFIX:'.html',
2222
HAS_SOURCE: true,

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'./',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

info/chinese-localization-info.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

info/contributing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

info/extra-vm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

info/vm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

labs/arm_kernel_development.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

labs/block_device_drivers.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

labs/deferred_work.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,

labs/device_drivers.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html class="writer-html4" lang="en" >
2+
<html class="writer-html4" lang="zh-CN" >
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -15,7 +15,7 @@
1515
var DOCUMENTATION_OPTIONS = {
1616
URL_ROOT:'../',
1717
VERSION:'',
18-
LANGUAGE:'None',
18+
LANGUAGE:'zh-CN',
1919
COLLAPSE_INDEX:false,
2020
FILE_SUFFIX:'.html',
2121
HAS_SOURCE: true,
@@ -813,6 +813,15 @@ <h3>5. 读操作<a class="headerlink" href="#section-18" title="Permalink to thi
813813
<h3>6. 写操作<a class="headerlink" href="#section-19" title="Permalink to this headline"></a></h3>
814814
<p>添加将消息写入内核缓冲区以替换预定义消息的功能。在驱动程序中实现写函数。按照标有 <code class="docutils literal"><span class="pre">TODO</span> <span class="pre">5</span></code> 的注释进行操作。</p>
815815
<p>此时忽略偏移参数。你可以假设驱动程序缓冲区足够大。你无需检查写函数大小参数的有效性。</p>
816+
<div class="admonition attention">
817+
<p class="first admonition-title">Attention</p>
818+
<p>设备驱动程序操作的原型位于 file_operations 结构中。使用以下命令进行测试:</p>
819+
<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nb">echo</span> <span class="s2">&quot;arpeggio&quot;</span>&gt; /dev/so2_cdev
820+
cat /dev/so2_cdev
821+
</pre></div>
822+
</div>
823+
<p class="last">请阅读 <a href="#system-message-5"><span class="problematic" id="problematic-5">`读和写`_</span></a> 小节和 <a class="reference internal" href="#section-8">访问进程地址空间</a> 小节。</p>
824+
</div>
816825
</div>
817826
<div class="section" id="ioctl-2">
818827
<h3>7. ioctl 操作<a class="headerlink" href="#ioctl-2" title="Permalink to this headline"></a></h3>
@@ -825,6 +834,16 @@ <h3>7. ioctl 操作<a class="headerlink" href="#ioctl-2" title="Permalink to thi
825834
<li>为了进行测试,我们将使用一个用户空间程序 (<code class="docutils literal"><span class="pre">user/so2_cdev_test.c</span></code>) 来调用具有所需参数的 <code class="docutils literal"><span class="pre">ioctl</span></code> 函数。</li>
826835
</ol>
827836
</div></blockquote>
837+
<div class="admonition attention">
838+
<p class="first admonition-title">Attention</p>
839+
<p><code class="docutils literal"><span class="pre">MY_IOCTL_PRINT</span></code> 在文件 <code class="docutils literal"><span class="pre">include/so2_cdev.h</span></code> 中定义,该文件在内核模块和用户空间程序之间共享。</p>
840+
<p class="last">请阅读实验中的 <a class="reference internal" href="#ioctl">ioctl</a> 章节。</p>
841+
</div>
842+
<div class="admonition attention">
843+
<p class="first admonition-title">Attention</p>
844+
<p>用户空间代码在 <code class="docutils literal"><span class="pre">make</span> <span class="pre">build</span></code> 时会自动编译,并在 <code class="docutils literal"><span class="pre">make</span> <span class="pre">copy</span></code> 时被复制。</p>
845+
<p class="last">由于我们需要为 32 位的 qemu 机器编译程序,如果你的主机是 64 位的,那么你需要安装 <code class="docutils literal"><span class="pre">gcc-multilib</span></code> 软件包。</p>
846+
</div>
828847
</div>
829848
</div>
830849
<div class="section" id="section-20">
@@ -860,6 +879,10 @@ <h3>使用等待队列的 ioctl<a class="headerlink" href="#ioctl-4" title="Perm
860879
<li>为进行测试,将所需的命令行参数传递给用户空间程序。</li>
861880
</ol>
862881
<p>当进程被添加到队列中时,它将保持阻塞状态;要运行队列命令,请使用 Alt+F2 打开虚拟机中的新控制台;可以使用 Alt+F1 返回到上一个控制台。如果是通过 SSH 连接到虚拟机的,请打开新的控制台。</p>
882+
<div class="admonition attention">
883+
<p class="first admonition-title">Attention</p>
884+
<p class="last">阅读实验中的 <a class="reference internal" href="#ioctl">ioctl</a><a class="reference internal" href="#section-11">等待队列</a> 部分。</p>
885+
</div>
863886
</div>
864887
<div class="section" id="o-nonblock">
865888
<h3>O_NONBLOCK 实现<a class="headerlink" href="#o-nonblock" title="Permalink to this headline"></a></h3>

0 commit comments

Comments
 (0)