4 ms·
HN's front page magic never seizes to amaze me. If you are looking for a introduction on how to write your first kernel module, Google will return pages worth o
by bitcharmer 6y ago
HN's front page magic never seizes to amaze me. If you are looking for a introduction on how to write your first kernel module, Google will return pages worth of results with blog post entries, articles and even excerpts from books such as LDD[0].
Yet this brief text gets the reward.
Don't get me wrong I absolutely root for people's efforts for popularising kernel dev, just stunned how HN works sometimes.
[0] https://lwn.net/Kernel/LDD3/ https://lwn.net/Kernel/LDD3/
- waiseristy 6y agoI think the reality is that news aggregators like HN reward short-form content; a 4 minute read is going to garner more upvotes than a page that links to 18 chapters of dense technical information. That's what the comments are for though! Thanks for linking this lwn page
- deleted 6y ago[deleted]
- _fizz_buzz_ 6y agoIs LDD still up to date?
- PurpleFoxy 6y agoIt hasn’t been updated since about 2004. No idea how much has changed since then but the authors have stated they don’t update it not because it’s still accurate but because they don’t need new kernel devs and it’s a lot of work.
- bitcharmer 6y agoSurprisingly most of it still is. My old modules still compile and work as expected.
- gpanders 6y agoThere are some things out of date for sure, but the bulk of it is still highly relevant. When I was first learning to write kernel drivers, I had LDD open on one screen and the kernel source code open on the other. You can usually look for examples in the source that will help you figure out the “modern” ways of doing things. LDD is indispensable for giving you a solid footing so that you’re not wading into the Linux kernel totally unequipped.
- ai_ja_nai 6y agome too, I'll never understand what posts get the attention :D
- tjoff 6y agoPerhaps a hello-world type of project is preferred when trying to get a first taste for it?
- mhh__ 6y agoMention Rust for those sweet sweet internet points! (I do like Rust, however seeing features D has had for 10 years on the frontpage is a little jarring, although I am channeling that into some blog posts to get the word out)
- shipp02 6y agolinux-kernel-labs[1]. This looks much better if you want to dive deep. Looks more up to date then LDD though I cannot talk about the quality since I haven't actually read it. I just found it when I put it into search. Looks more up to date then LDD though I cannot talk about the quality. [1](https://linux-kernel-labs.github.io/refs/heads/master/ https://linux-kernel-labs.github.io/refs/heads/master/)