pub unsafe fn syscall1_readonly(
    sysno: Sysno,
    arg0: usize
) -> Result<usize, Errno>
Expand description

Make a raw system call with 1 argument. Like the non _readonly version but you declare that syscall does not mutate any memory.

Safety

A system call is unsafe by definition. It’s the caller’s responsibility to ensure safety.