]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: dma: implement DataDirection
authorDanilo Krummrich <dakr@kernel.org>
Thu, 28 Aug 2025 13:32:14 +0000 (15:32 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 4 Sep 2025 21:33:50 +0000 (23:33 +0200)
commitc2437c43cfb1f7f461669ba3cd74936fe345640b
treecfd48c33c10a12673926807f48eb816e1af5e41a
parent779db37373a38f23e2534c7f4ffe8188f5237988
rust: dma: implement DataDirection

Add the `DataDirection` struct, a newtype wrapper around the C
`enum dma_data_direction`.

This provides a type-safe Rust interface for specifying the direction of
DMA transfers.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250828133323.53311-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/bindings/bindings_helper.h
rust/kernel/dma.rs