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.