Skip to content

Commit a0339bf

Browse files
committed
rust: add an intrusive linked list
It is unsafe because it requires users to track if/when objects are inserted into or removed from lists. It is meant to be used as the basis for other linked lists, so the `linked_list` module will be updated to use it, `raw_list` will be removed, and a non-intrusive list of owned entries will be written based on it. It's also used in the workqueue-based executor to keep track of all tasks -- it is helpful here because it is cheaper than the other options. It comes with a set of tests that run with `make rusttest`. Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
1 parent 9f4510e commit a0339bf

File tree

2 files changed

+681
-0
lines changed

2 files changed

+681
-0
lines changed

rust/kernel/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ pub mod task;
6868
pub mod linked_list;
6969
mod raw_list;
7070
pub mod rbtree;
71+
pub mod unsafe_list;
7172

7273
#[doc(hidden)]
7374
pub mod module_param;

0 commit comments

Comments
 (0)