diff options
author | Andreas Hindborg <a.hindborg@samsung.com> | 2024-06-11 14:45:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-14 16:45:04 +0300 |
commit | 3253aba3408aa4eb2e4e09365eede3e63ef7536b (patch) | |
tree | 180dd0614aa29c2a789717ded08f209b66368640 /rust/kernel/lib.rs | |
parent | c2670cf789500304097cd115483cc70e1feb9472 (diff) | |
download | linux-3253aba3408aa4eb2e4e09365eede3e63ef7536b.tar.xz |
rust: block: introduce `kernel::block::mq` module
Add initial abstractions for working with blk-mq.
This patch is a maintained, refactored subset of code originally published
by Wedson Almeida Filho <wedsonaf@gmail.com> [1].
[1] https://github.com/wedsonaf/linux/tree/f2cfd2fe0e2ca4e90994f96afe268bbd4382a891/rust/kernel/blk/mq.rs
Cc: Wedson Almeida Filho <wedsonaf@gmail.com>
Signed-off-by: Andreas Hindborg <a.hindborg@samsung.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20240611114551.228679-2-nmi@metaspace.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/lib.rs')
-rw-r--r-- | rust/kernel/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index fbd91a48ff8b..2cf7c6b6f66b 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -27,6 +27,8 @@ compile_error!("Missing kernel configuration for conditional compilation"); extern crate self as kernel; pub mod alloc; +#[cfg(CONFIG_BLOCK)] +pub mod block; mod build_assert; pub mod error; pub mod init; |