rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add dma coherent allocator abstraction
@ 2024-11-04  9:06 Abdiel Janulgue
  2024-11-04  9:06 ` [PATCH v3 1/2] rust: error: Add EOVERFLOW Abdiel Janulgue
  2024-11-04  9:06 ` [PATCH v3 2/2] rust: add dma coherent allocator abstraction Abdiel Janulgue
  0 siblings, 2 replies; 7+ messages in thread
From: Abdiel Janulgue @ 2024-11-04  9:06 UTC (permalink / raw)
  To: rust-for-linux
  Cc: daniel.almeida, a.hindborg, linux-kernel, dakr, airlied,
	miguel.ojeda.sandonis, wedsonaf, Abdiel Janulgue

This series adds support for the dma coherent allocator.

Changes since v2:
- Fixed missing header for generating the bindings.

Changes since v1:
- Fix missing info in commit log where EOVERFLOW is used
- Restrict the dma coherent allocator to numeric types for now for valid
  behaviour.
- Build slice dynamically.

Abdiel Janulgue (2):
  rust: error: Add EOVERFLOW
  rust: add dma coherent allocator abstraction.

 rust/bindings/bindings_helper.h |   1 +
 rust/kernel/dma.rs              | 165 ++++++++++++++++++++++++++++++++
 rust/kernel/error.rs            |   1 +
 rust/kernel/lib.rs              |   1 +
 4 files changed, 168 insertions(+)
 create mode 100644 rust/kernel/dma.rs


base-commit: ae7851c29747fa3765ecb722fe722117a346f988
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-04 10:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-04  9:06 [PATCH v3 0/2] Add dma coherent allocator abstraction Abdiel Janulgue
2024-11-04  9:06 ` [PATCH v3 1/2] rust: error: Add EOVERFLOW Abdiel Janulgue
2024-11-04  9:06 ` [PATCH v3 2/2] rust: add dma coherent allocator abstraction Abdiel Janulgue
2024-11-04  9:31   ` Alice Ryhl
2024-11-04  9:36     ` Abdiel Janulgue
2024-11-04 10:00       ` Alice Ryhl
2024-11-04 10:31         ` Abdiel Janulgue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).