News for hackers. Stuff that matters.
Re:Resistance to Rust abstractions for DMA mapping by UtherII on Wednesday February 05, 2025 @02:18AM (#42945030)
That's exactly the point. The patch in question is not to be used in any part of the kernel. It is a wrapper around the C API. It has no impact on current code and it will only be used by Rust drivers using DMA, the people of Rust for Linux were clear about it.

Duplicating this wrapper in every driver would just make painful the usage of DMA for Rust drivers for not benefit.

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.