kernel::error - Rust
Skip to main content Module error kernel Module error Source Expand description Kernel errors. C header: include/uapi/asm-generic/errno-base.h C header: include/uapi/asm-generic/errno.h C header: include/linux/errno.h Modules § code Contains the C-compatible error codes. Structs § Error Generic integer kernel error. Constants § VTABLE_ DEFAULT_ ERROR Error message for calling a default function of a #[vtable] trait.
Functions § from_ err_ ptr Transform a kernel “error pointer” to a normal pointer. from_ result Calls a closure returning a crate::error::Result<T> and converts the result to a C integer result. to_ result Converts an integer as returned by a C kernel function to a Result . Type Aliases § Result A Result with an Error error type.