Comment by arp242
10 months ago
People can just include their own dma.rs in driver/.../mydriver/
Whether that's a good or bad approach is besides the point. It's what was suggested as an alternative, and clearly it's something that would work. "You can't use DMA from Rust" is just not true.
If it was a good approach, the C folks would have copied around C files instead of having common core code. They did not do that though, because it'd be counter productive due to increasing maintenance burden.
Everyone knows it would increase maintenance burden, decrease reliability, and increase the amount of apparent churn of rust code in the linux kernel.
Everyone knows you could start the crude way today and refactor the duplication later after it proves itself, if you actually wanted to proceed rather than throw fits.
You can't just endlessly dump more busywork on Rust developers (including genuinely bad code practices) and expect them to deal with it.
There is zero good reason to duplicate that code and refactor it later.
4 replies →