]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: add dma coherent allocator abstraction
authorAbdiel Janulgue <abdiel.janulgue@gmail.com>
Mon, 17 Mar 2025 18:52:09 +0000 (20:52 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 20 Mar 2025 20:44:46 +0000 (21:44 +0100)
commitad2907b4e308a93deac93ff408f8bbbcac333905
tree9d198d04ad395440ecbae09b2c27b77097e2a09a
parente385e94a8bc38ffb1da1a735eb1d7f290c8852f0
rust: add dma coherent allocator abstraction

Add a simple dma coherent allocator rust abstraction. Based on
Andreas Hindborg's dma abstractions from the rnvme driver, which
was also based on earlier work by Wedson Almeida Filho.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250317185345.2608976-3-abdiel.janulgue@gmail.com
Nacked-by: Christoph Hellwig <hch@lst.de>
[ Removed period. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/bindings/bindings_helper.h
rust/kernel/dma.rs [new file with mode: 0644]
rust/kernel/lib.rs