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::*;
15 error::{Error, Result},
16 pr_emerg, pr_info, ThisModule,
18 pub use alloc::{boxed::Box, vec::Vec};
19 pub use core::pin::Pin;
20 pub use macros::module;