[PATCH v2 0/3] Rust scatterlist abstractions

Qingsong Chen posted 3 patches 2 years, 8 months ago
There is a newer version of this series
rust/bindings/bindings_helper.h |   1 +
rust/helpers.c                  |  14 +
rust/kernel/lib.rs              |   1 +
rust/kernel/scatterlist.rs      | 502 ++++++++++++++++++++++++++++++++
4 files changed, 518 insertions(+)
create mode 100644 rust/kernel/scatterlist.rs
[PATCH v2 0/3] Rust scatterlist abstractions
Posted by Qingsong Chen 2 years, 8 months ago
Hi All!

This is a version of scatterlist abstractions for Rust drivers.

Scatterlist is used for efficient management of memory buffers, which is
essential for many kernel-level operations such as Direct Memory Access
(DMA) transfers and crypto APIs.

This patch should be a good start to introduce the crypto APIs for Rust
drivers and to develop cipher algorithms in Rust later.

Changelog:
----------
v1 -> v2:
- Split the old patch into smaller parts.
- Remove the selftest module, and place those use cases in the doc.
- Repair some invalid hyperlinks in the doc.
- Put some `cfgs` inside functions to avoid boilerplate.
====================

Qingsong Chen (3):
  rust: kernel: add ScatterList abstraction
  rust: kernel: implement iterators for ScatterList
  rust: kernel: add SgTable abstraction

 rust/bindings/bindings_helper.h |   1 +
 rust/helpers.c                  |  14 +
 rust/kernel/lib.rs              |   1 +
 rust/kernel/scatterlist.rs      | 502 ++++++++++++++++++++++++++++++++
 4 files changed, 518 insertions(+)
 create mode 100644 rust/kernel/scatterlist.rs

-- 
2.40.1