The OSDev wiki can probably teach you anything you need to know about "OS theory" (and practice, mostly on x86): https://wiki.osdev.org/Expanded_Main_Page Depending on your style of programming, I'd recommend maybe not working on Linux if you are trying to learn kernel development and OS internals. Have you looked at Haiku ( https://www.haiku-os.org/ )? We have a very well organized and commented modular-monolitic ke…
Ask HN: Recommended resources to learn the Linux kernel and OS theory?
31–40 of 84 posts
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#32Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#33The OSDev wiki can probably teach you anything you need to know about "OS theory" (and practice, mostly on x86): https://wiki.osdev.org/Expanded_Main_Page Depending on your style of programming, I'd recommend maybe not working on Linux if you are trying to learn kernel development and OS internals. Have you looked at Haiku ( https://www.haiku-os.org/ )? We have a very well organized and commented modular-monolitic ke…
I have heard of Haiku,but haven't looked at it in a while. However, I have heard great things about it and would certainly be interesting in learning and contributing
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#34Yes, there is just so much, and it is not thoroughly documented. "BPF maps" in particular are a) a special feature of a special feature that's Linux-specific, not anything that generalizes across OSes, and b) a feature for userspace anyway, not for kernel internals. But even longstanding kernel-internal features aren't well documented (e.g., the other day I was trying to figure out what struct file's f_version does,…
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#35https://www.amazon.com/Lions-Commentary-Unix-John/dp/1573980...
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#36http://pages.cs.wisc.edu/~remzi/OSTEP/
(Online version above, you can also order a print copy).
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#37Yes, there is just so much, and it is not thoroughly documented. "BPF maps" in particular are a) a special feature of a special feature that's Linux-specific, not anything that generalizes across OSes, and b) a feature for userspace anyway, not for kernel internals. But even longstanding kernel-internal features aren't well documented (e.g., the other day I was trying to figure out what struct file's f_version does,…
That's a very good point. If we're recommending tools, cscope (especially if you're a vim/emacs user) or opengrok (if you're not or prefer a web frontend for other reasons) are super helpful for navigating and comprehending large, mysterious codebases.
DTrace/eBPF are also valuable tools for grokking kernel functionality.
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#38"Operating Systems: Three Easy Pieces" is a more modern book to OS concepts, explained with real source code as opposed to algorithms, and is regularly updated. http://pages.cs.wisc.edu/~remzi/OSTEP/ (Online version above, you can also order a print copy).
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#39XinuOS [2]
MIT's xv6 OS [3]
[1] http://pages.cs.wisc.edu/~remzi/OSTEP/
Re: Ask HN: Recommended resources to learn the Linux kernel and OS theory?
#40OSTEP is the best book on Operating systems easily. http://pages.cs.wisc.edu/~remzi/OSTEP/