pub type SyscallResult = Result<isize, SyscallError>;
Expand description

The result of a syscall

  • Ok(x) - The syscall is successful, and the return value is x

  • Err(error) - The syscall failed, and the error is related to linux_error

Aliased Type§

enum SyscallResult {
    Ok(isize),
    Err(LinuxError),
}

Variants§

§1.0.0

Ok(isize)

Contains the success value

§1.0.0

Err(LinuxError)

Contains the error value