Re: [PATCH v8 2/2] rust: add dma coherent allocator abstraction.

From: Abdiel Janulgue
Date: Mon Feb 03 2025 - 03:22:53 EST


Hi,

On 31/01/2025 09:57, Christoph Hellwig wrote:

Which doesn't help me a bit. Every additional bit that the another
language creeps in drastically reduces the maintainability of the kernel
as an integrated project. The only reason Linux managed to survive so
long is by not having internal boundaries, and adding another language
complely breaks this. You might not like my answer, but I will do
everything I can do to stop this. This is NOT because I hate Rust.
While not my favourite language it's definitively one of the best new
ones and I encourage people to use it for new projects where it fits.
I do not want it anywhere near a huge C code base that I need to
maintain.


I do acknowledge your reservations about the possible maintenance burden due to the introduction of a rust (or another language) consumer of the dma-api. But I was hoping that we could arrive at some sort of common ground?

If this rust middle-layer abstraction is unacceptable to you, could you perhaps suggest a solution so that all rust device driver don’t end up with redundant dma coherent allocator rust code? Could the rust team do something about it?

Thanks,

Abdiel