pub unsafe fn syscall(nr: Sysno, args: &SyscallArgs) -> Result<usize, Errno>
Expand description
Does a raw syscall.
§Arguments
nr
: The syscall number.
args
: packed arguments
§Returns
Ok
on success,
Err
when the syscall failed (with errno).
§Safety
Running a system call is inherently unsafe. It is the caller’s
responsibility to ensure safety.