Skip to content

Commit

Permalink
fix lab names (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 authored May 2, 2024
1 parent 5331e27 commit 15f70f0
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion labs/arm_kernel_development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Qemu
===========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: ARM 内核开发
.. |LAB_NAME| replace:: arm_kernel_development

.. warning::

Expand Down
2 changes: 1 addition & 1 deletion labs/block_device_drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 块设备驱动程序
.. |LAB_NAME| replace:: block_device_drivers

0. 简介
--------
Expand Down
2 changes: 1 addition & 1 deletion labs/deferred_work.rst
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ tasklet
========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 延迟工作
.. |LAB_NAME| replace:: deferred_work

0. 简介
--------
Expand Down
2 changes: 1 addition & 1 deletion labs/device_drivers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ ioctl
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 设备驱动
.. |LAB_NAME| replace:: device_drivers

0. 简介
-------
Expand Down
2 changes: 1 addition & 1 deletion labs/device_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ PNP 操作
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 设备模型
.. |LAB_NAME| replace:: device_model

0. 引言
---------
Expand Down
6 changes: 3 additions & 3 deletions labs/exercises-summary.hrst
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
.. code-block:: shell

tools/labs $ make clean
tools/labs $ LABS=<lab name> make skels
tools/labs $ LABS=<实验名称> make skels

你还可以使用以下命令为单个任务生成骨架代码:

.. code-block:: shell

tools/labs $ LABS=<lab name>/<task name> make skels
tools/labs $ LABS=<实验名称>/<任务名称> make skels

生成骨架驱动程序后,构建源代码:

Expand All @@ -35,7 +35,7 @@

tools/labs $ make console

模块将放置在 /home/root/skels/|LAB_NAME|/<task_name> 目录中。
模块将放置在 /home/root/skels/|LAB_NAME|/<任务名称> 目录中。

重新构建模块时,无需停止虚拟机!本地 `skels` 目录与虚拟机共享。

Expand Down
2 changes: 1 addition & 1 deletion labs/filesystems_part1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ VFS 函数通常以超级块、索引节点和/或包含指向超级块的指针
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 文件系统
.. |LAB_NAME| replace:: filesystems

..
_[SURVEY-LABEL]
Expand Down
2 changes: 1 addition & 1 deletion labs/filesystems_part2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ Dentry 操作
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 文件系统
.. |LAB_NAME| replace:: filesystems

.. important::

Expand Down
2 changes: 1 addition & 1 deletion labs/infrastructure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
.. code-block:: shell
tools/labs $ make build
echo "# 自动生成的,不要编辑 " > skels/Kbuild
echo "# autogenerated, do not edit " > skels/Kbuild
for i in ./kernel_modules/8-kprobes; do echo "obj-m += $i/" >> skels/Kbuild; done
make -C /home/tavi/src/linux M=/home/tavi/src/linux/tools/labs/skels ARCH=x86 modules
make[1]: Entering directory '/home/tavi/src/linux'
Expand Down
4 changes: 2 additions & 2 deletions labs/interrupts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ ioperm 函数的第三个参数用于请求或释放端口权限:1 表示获
* drivers/input/serio/i8042.c
* drivers/input/keyboard/atkbd.c

Linux设备驱动程序
Linux 设备驱动程序
--------------------

* `Linux 设备驱动程序,第 3 版,第 9 章——与硬件通信 <http://lwn.net/images/pdf/LDD3/ch09.pdf>`_
Expand All @@ -463,7 +463,7 @@ Linux设备驱动程序
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 中断
.. |LAB_NAME| replace:: interrupts

0. 简介
--------
Expand Down
2 changes: 1 addition & 1 deletion labs/kernel_profiling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ top
=========
.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 内核分析
.. |LAB_NAME| replace:: kernel_profiling
.. note::
Expand Down
2 changes: 1 addition & 1 deletion labs/memory_mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ mmap 系统调用有以下参数:
=========

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 内存映射
.. |LAB_NAME| replace:: memory_mapping

1. 将连续的物理内存映射到用户空间
--------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion labs/networking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ netcat
====

.. include:: ../labs/exercises-summary.hrst
.. |LAB_NAME| replace:: 网络
.. |LAB_NAME| replace:: networking

.. important::

Expand Down
1 change: 1 addition & 0 deletions lectures/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
:inline-contents: True

.. image:: ../img/lectures/Monolithic_kernel.svg
:width: 660px


尽管如此,大部分单体内核在子系统间都实现了逻辑上的分隔,尤其是核心内核与设备驱动程序之间,它们通常需要通过较为严格的 API 来互相访问服务(这些 API 并非总是固定不变的)。显然,这种做法依赖于内核的具体实现和架构设计。
Expand Down

0 comments on commit 15f70f0

Please sign in to comment.