TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: I'd like to start reading the Linux source code. Where should I start?

27 点作者 markchristian将近 2 年前

10 条评论

molteanu将近 2 年前
Since you do not mention if you&#x27;re already a pro with OS internals and implementations, I will assume, maybe incorrectly, that you&#x27;re not.<p>So in that spirit, try the XinuOS. It has the complete source code for a minimal, clean and practical OS. Search for the book explaining it inside out.<p>xv6, a re-implementation of Dennis Ritchie&#x27;s and Ken Thompson&#x27;s Unix Version 6 (v6) also comes to mind.<p>And C. Don&#x27;t forget to sharpen your C skills.
评论 #36034876 未加载
Agingcoder将近 2 年前
Read the Linux programming interface by Michael Kerrisk. It will tell you what Linux should be doing for you ( the api basically and what subsystems exist). Read lwn, kernel newbies to get a feel of what’s happening in the kernel.<p>Get knowledge of operating systems ( I like the minix book by tanenbaum ). Learn about Linux internals ( I like linux kernel development by Robert love)<p>Then, pick bits you’re interested in and jump !
unmole将近 2 年前
Linux Kernel Development by Robert Love. It&#x27;s spectacularly out of date but is still a good starting point. And Elixir is very helpful for browsing the source code and comparing chnages across kernel version: <a href="https:&#x2F;&#x2F;elixir.bootlin.com&#x2F;linux&#x2F;latest&#x2F;source" rel="nofollow">https:&#x2F;&#x2F;elixir.bootlin.com&#x2F;linux&#x2F;latest&#x2F;source</a>
ginto将近 2 年前
Linux Core Kernel Commentary: Guide to Insider&#x27;s Knowledge on the Core Kernel of the Linux Code<p><a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Linux-Core-Kernel-Commentary-Knowledge&#x2F;dp&#x2F;1576104699" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Linux-Core-Kernel-Commentary-Knowledg...</a><p>Understanding the Linux Kernel, Third Edition 3rd Edition<p><a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Understanding-Linux-Kernel-Third-Daniel&#x2F;dp&#x2F;0596005652" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Understanding-Linux-Kernel-Third-Dani...</a>
LinuxBender将近 2 年前
Without more details I assume you just want the source code and documentation. One could either clone the repositories [1] or just browse the CDN access to the docs and kernels. [2] The latest kernel is in the v6.x directory.<p>[1] - <a href="https:&#x2F;&#x2F;github.com&#x2F;torvalds&#x2F;linux">https:&#x2F;&#x2F;github.com&#x2F;torvalds&#x2F;linux</a><p>[2] - <a href="https:&#x2F;&#x2F;cdn.kernel.org&#x2F;pub&#x2F;linux&#x2F;kernel&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cdn.kernel.org&#x2F;pub&#x2F;linux&#x2F;kernel&#x2F;</a>
cf100clunk将近 2 年前
Have you considered &#x27;&#x27;Linux From Scratch&#x27;&#x27; as an element of your research?<p><a href="https:&#x2F;&#x2F;www.linuxfromscratch.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.linuxfromscratch.org&#x2F;</a><p>Building a Linux kernel and system with your own specific configuration tweaks may reveal things that the best of books, manuals, courses, etc. might not cover.
wmf将近 2 年前
Something I&#x27;ve done a couple times is trace the execution of a system call by reading the code. LXR is really helpful.
rahimnathwani将近 2 年前
This older comment thread may be useful: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19225268" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19225268</a>
bombcar将近 2 年前
<i>Understanding the Linux Kernel, Third Edition</i> is now horribly out of date, but it&#x27;s a good place to start if you&#x27;ve never read it before.
ftxbro将近 2 年前
find something you don&#x27;t like about linux and try to track down where that thing is to fix it
评论 #36028121 未加载