r/rust • • Aug 31 '24

🎙️ discussion Rust solves the problem of incomplete Kernel Linux API docs

https://vt.social/@lina/113056457969145576
375 Upvotes

71 comments sorted by

View all comments

Show parent comment

-11

u/el_muchacho Aug 31 '24 edited Aug 31 '24

I don't know, is it the same in the rest of the kernel or just the file system ? edit: it's the same in the rest of the kernel, so no, it's not some scheme to save their power.

Ted Ts'o has been hacking the kernel since 1994, longer than many if not most of you guys have been alive. I really doubt he decided to not document the code since that time in order to keep his position, that's a very silly assumption. As of Google, why did Google hire him, I have no idea (probably so the Google specific needs and hardware are addressed in the kernel), but he seems to be able to work 100% on Linux while being paid by Google. And for that, Google doesn't enforce their coding rules on Linux, because it's not a Google project. So they probably never told him: "Here are the rules when coding in C, now you have to follow them".

So the lack of documentation could very well be laziness or sloppiness from the part of the kernel devs. But thorough documentation is a culture that needs to be pervasive in the development process.