Module kernel::prelude[][src]

Expand description

The kernel prelude.

These are the most common items used by Rust code in the kernel, intended to be imported by all Rust code, for convenience.

Examples

use kernel::prelude::*;

Re-exports

pub use super::build_assert;
pub use super::pr_alert;
pub use super::pr_crit;
pub use super::pr_emerg;
pub use super::pr_err;
pub use super::pr_info;
pub use super::pr_notice;
pub use super::pr_warn;
pub use super::static_assert;
pub use super::KernelModule;
pub use crate::traits::TryPin;

Macros

module

Declares a kernel module.

module_misc_device

Declares a kernel module that exposes a single misc device.

Structs

Arc

A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

Box

A pointer type for heap allocation.

Error

Generic integer kernel error.

Pin

A pinned pointer.

String

A UTF-8–encoded, growable string.

Vec

A contiguous growable array type, written as Vec<T> and pronounced ‘vector’.

Type Definitions

Result

A Result with an Error error type.