Function kernel::error::to_result

source ·
pub fn to_result(err: c_int) -> Result
Expand description

Converts an integer as returned by a C kernel function to an error if it’s negative, and Ok(()) otherwise.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.