← Back to context

Comment by ww520

10 months ago

Just curious. Why can't the wrapper be an independent library outside of the DMA infrastructure? It can still be used by all rust drivers.

I think Hellwig is against moving the wrapper into the DMA project that he's forced to maintain it.

No, Hellwig also Nack'd the patch that added the wrapper to an independent library outside of the core C DMA directory.

  • Why would he do that? He has no control over an independent library outside of C DMA? I thought he said he's fine with any drivers written in Rust. Just that the maintenance of such including any wrapper cannot fall into C DMA's lap.

    • > Why would he do that?

      It's a great question. I mean, my read of it is he hates the idea of Rust4Linux and is using his position to obstruct.

      > He has no control over an independent library outside of C DMA?

      Apparently not.

      > Just that the maintenance of such including any wrapper cannot fall into C DMA's lap.

      The patch he rejected did not add any code to C DMA, nor C DMA's directory (kernel/dma). Just:

        rust/bindings/bindings_helper.h |   1 +
        rust/kernel/dma.rs              | 271 ++++++++++++++++++++++++++++++++
        rust/kernel/lib.rs              |   1 +
      

      (Nor does any Rust4Linux code add any maintenance burden to C -- C maintainers are allowed to break Rust code at will.)

      1 reply →

    • No, he said very explicitly that he is against any Rust code in Linux whatsoever. He doesn't have any beef with Rust, the same would be true for him if people tried to add C++ or Pascal or Ada or any other kind of drivers or infra in Linux: he believes that the project will be much harder to maintain if it's not 100% pure C (and assembly).

      Here is a link to this explicit claim: https://lore.kernel.org/rust-for-linux/20250131075751.GA1672...

    • > Why would he do that? He has no control over an independent library outside of C DMA?

      That is the crux of the entire drama and why R4L developers got upset at Christoph in the first place, and asked Linus to intervene.