Files
Joel Fernandes f9f0b4a1f3 rust: interop: Add list module for C linked list interface
Add a new module `kernel::interop::list` for working with C's doubly
circular linked lists. Provide low-level iteration over list nodes.

Typed iteration over actual items is provided with a `clist_create`
macro to assist in creation of the `CList` type.

Cc: Nikola Djukic <[email protected]>
Reviewed-by: Daniel Almeida <[email protected]>
Reviewed-by: Alexandre Courbot <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Acked-by: Alexandre Courbot <[email protected]>
Acked-by: Gary Guo <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Signed-off-by: Joel Fernandes <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ * Remove stray empty comment and double blank line in doctest,
  * Improve wording and fix a few typos,
  * Use markdown emphasis instead of caps,
  * Move interop/mod.rs to interop.rs.

    - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
2026-03-23 20:29:28 +01:00

10 lines
295 B
Rust

// SPDX-License-Identifier: GPL-2.0
//! Infrastructure for interfacing Rust code with C kernel subsystems.
//!
//! This module is intended for low-level, unsafe Rust infrastructure code
//! that interoperates between Rust and C. It is *not* for use directly in
//! Rust drivers.
pub mod list;