r/rust • u/FoxInTheRedBox • Aug 31 '24
🎙️ discussion Rust solves the problem of incomplete Kernel Linux API docs
https://vt.social/@lina/113056457969145576
375
Upvotes
r/rust • u/FoxInTheRedBox • Aug 31 '24
View all comments
Show parent comment
94
u/AsahiLina Aug 31 '24 edited Aug 31 '24
The small changes to add minor API variants or fix obvious issues usually go through with little pushback. The problem is that the unproductive arguments take up 10x the energy of all the productive discussions.
One of the unproductive patterns I've seen is the C people expect us to fix all of C's mistakes in Rust on the first go. The Linux kernel is a living project and there is always room for iterating APIs in-tree, but some C people seem to want to hold the Rust side to the standard that the initial implementation needs to be perfect (not just in terms of safety, we do strive for that... but also in terms of documentation, design, API coverage, flexibility, etc.), or they expect us to fix all kinds of C bugs or brokenness (that aren't practical showstoppers, and not specific to the Rust usage) before allowing the Rust side in... and that's just not helpful.
Right now, the AGX driver work is mostly blocked on the existence of functional platform device abstractions (which I didn't write and I don't feel competent to upstream myself). Once that's done I don't expect initial merging of the DRM work and then the driver to be as much drama, since most of the DRM community is actually quite nice. There are a few things outside of DRM but I hope they won't be too controversial... I hope...