rust: dma: add as_slice/write functions for CoherentAllocation
authorAbdiel Janulgue <abdiel.janulgue@gmail.com>
Mon, 2 Jun 2025 08:53:13 +0000 (11:53 +0300)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 13:44:30 +0000 (15:44 +0200)
commitd37a39f607c4a479d59781639b9c2a05448568a3
treec5a023df7772fded7ee80e385a83402a3b42654a
parentfe58465905550576cc47cf93efeaaa6990e6c3b3
rust: dma: add as_slice/write functions for CoherentAllocation

Add unsafe accessors for the region for reading or writing large
blocks of data.

Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250602085444.1925053-4-abdiel.janulgue@gmail.com
[ Fix line length and slightly reword safety comment in doc-test of
  CoherentAllocation::write(); fix formatting issue. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/dma.rs