Expand description
Kernel errors.
C header: include/uapi/asm-generic/errno-base.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 an error if it’s negative, and
Ok(())
otherwise.