1 // SPDX-License-Identifier: GPL-2.0
3 //! The `kernel` prelude.
5 //! These are the most common items used by Rust code in the kernel,
6 //! intended to be imported by all Rust code, for convenience.
11 //! use kernel::prelude::*;
14 pub use core::pin::Pin;
16 pub use alloc::{boxed::Box, vec::Vec};
18 pub use macros::{module, vtable};
20 pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
22 pub use super::error::{Error, Result};
24 pub use super::ThisModule;