Skip to content

Commit 1791062

Browse files
y86-devojeda
authored andcommitted
rust: prelude: add pin-init API items to prelude
Add `pin-init` API macros and traits to the prelude. Signed-off-by: Benno Lossin <[email protected]> Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent d1a77c2 commit 1791062

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust/kernel/prelude.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub use core::pin::Pin;
1818
pub use alloc::{boxed::Box, vec::Vec};
1919

2020
#[doc(no_inline)]
21-
pub use macros::{module, vtable};
21+
pub use macros::{module, pin_data, pinned_drop, vtable};
2222

2323
pub use super::build_assert;
2424

@@ -27,8 +27,12 @@ pub use super::build_assert;
2727
pub use super::dbg;
2828
pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
2929

30+
pub use super::{init, pin_init, try_init, try_pin_init};
31+
3032
pub use super::static_assert;
3133

3234
pub use super::error::{code::*, Error, Result};
3335

3436
pub use super::{str::CStr, ThisModule};
37+
38+
pub use super::init::{InPlaceInit, Init, PinInit};

0 commit comments

Comments
 (0)