Linux 内核/操作系统源代码文档?
是否有 Linux 发行版(Minix 除外)具有良好的源代码文档?或者,有一些好的文档来描述一般的 Linux 源代码吗?
我已经下载了内核源代码,但是,(毫不奇怪)找到我的方法有点让人不知所措,我想知道是否有一些更高级别的文档来说明 Linux 内核的工作原理?
Is there a Linux distro (other than Minix) with good documentation for the source code? Or, is there some good documentation to describe the general Linux source code?
I have downloaded the Kernel source code, but, it is (unsurprisingly) a little overwhelming to find my way around and I wondered if there were some higher-level documentation to go with how the Linux kernel works?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您是否尝试过查看 Linux 文档项目 我发现它对 Linux 非常详尽
他们有一个The Linux Kernel 部分,这是一本在线书籍,解释了
Linux 内核是如何工作的以及它为什么以某些方式运行,你绝对应该了解
看看它,因为它制作精良。
Have you tried having a look on The linux documentation project I've find it quietly exhaustive regarding linux
They have a section The Linux Kernel wich is an online book that explains
how the linux kernel works and why it does behaves in certain ways, you should deffinitely
look into it because it's very well made.
一些 Linux 内核代码有很好的注释作为文档,但如果您要进入内核开发,我建议您选择一本好书。一本相对容易阅读的好书是 Linux Kernel开发,作者:罗伯特·洛夫。我在大学时就开始阅读第二版,现在我的书架上还保留着第三版。
我还发现 Linux Cross Reference 站点有助于跳转内核源代码。它非常适合跟踪不同文件中的函数并获取您需要的内容。
Some of the Linux kernel code has decent commenting as documentation, but if you're going to be getting into kernel development, I'd recommend picking up a good book. A good, relatively easy-to-read one is Linux Kernel Development, by Robert Love. I got started on the Second Edition when I was in college, and keep a copy of the third on my bookshelf now.
I also find the Linux Cross Reference site helpful in jumping around the kernel source code. It's nice for tracking down functions that are in different files, and getting at what you need.
如果您想学习操作系统及其基础知识,我强烈建议您从一个小内核开始,然后逐步学习 Linux。从像 Linux 这样的操作系统开始,代码和文档将是巨大的。
XV6 操作系统遵循文件和进程的基本 Unix 概念。您可以获得代码清单和正确解释代码的文档。这是它的链接。 链接。
由于学术界使用本课程作为基线,我认为您应该得到很好的支持来理解它。
If you want to learn about operating systems and their basics, I strongly suggest you to start with a small kernel and then ramp up to learn about Linux. Starting with an operating system like Linux would be overwhelming in terms of code and documentation.
There is XV6 operating system which follows the basic Unix notion of files and processes. You can get the code listing and the documentation explaining the code properly. Here is a link to it. link.
Since academia is using this course as a baseline, I think you should get good support for understanding the same.
Linux 核心内核评论有点过时,但仍然是一个很好的来源信息。
Linux Core Kernel Commentary is a little dated, but is still an excellent source of info.
对于尚未过时的内容(例如
kernel.org/doc
),您可能会看到:第一个是我个人更喜欢的一个(干净、可读、令人愉快、最新)。
第二个是最广为人知的。
第三个是供下载的,如果您想离线浏览和搜索(在某些情况下可能很方便)。
在我离开之前,我想顺便说两句:我觉得奇怪的是,对于像 Linux 内核这样著名的东西,当你在网上搜索文档时,你会得到大量过时的文档,以及如何相当最新的文档。日期似乎相当隐蔽,远离搜索引擎的顶部位置。
For something which is not obsolete (like
kernel.org/doc
is), you may see:The first is the one I prefer personally (clean, readable, pleasant, up‑to‑date).
The second is the most well known.
The third, is for download, if you wish to browse and search it off‑line (may be handy in some case).
My two cents as a side note before I leave: I feel it's weird how for such a famous stuff as the Linux kernel is, when you search the web for documentation, you get masses of obsolete documentations, and how the rather up‑to‑date ones seems to be rather hidden and far from the top position of search engines.