pub fn decode_raw_result(res: RawResult) -> Result<usize, i32>
Expand description

“Decode” a result from syscall_raw!.

This returns Ok(retval) for “success” results, and Err(errno) for “error” results.

It can also be used to decode the results of the syscallX() functions, like syscall0().