Re:Resistance to Rust abstractions for DMA mapping
by arp242 on Thursday February 06, 2025 @01:28PM
(#42965066)
And Hellwig feels that's better done by "keep[ing] the wrappers in your code instead of making life painful for others".
I can see where he's coming from. I can also see why doing that is painful.
I don't really know what the best possible solution is. I do know that "Linus decided on Rust4Linux, therefore, this must be merged" is not a good argument. "Linus decided «moduke» is merged, therefore, accept my patches that are useful to «module» on «some other subsystem»". That doesn't really work, obviously.
Duplicating this wrapper in every driver would just make painful the usage of DMA for Rust drivers for not benefit.