Crate rawsys_linux

Source

Modules§

aarch64
aarch64 architecture syscall definitions.
arm
arm architecture syscall definitions.
loongarch64
loongarch64 architecture syscall definitions.
mips
mips architecture syscall definitions.
mips64
mips64 architecture syscall definitions.
powerpc
powerpc architecture syscall definitions.
powerpc64
powerpc64 architecture syscall definitions.
raw
Exposes raw syscalls that simply return a SyscallWord instead of a Result.
riscv32
riscv32 architecture syscall definitions.
riscv64
riscv64 architecture syscall definitions.
s390x
s390x architecture syscall definitions.
sparc
sparc architecture syscall definitions.
sparc64
sparc64 architecture syscall definitions.
v5_4
Syscalls for the x86_64 architecture (Linux v5.4).
v5_10
Syscalls for the x86_64 architecture (Linux v5.10).
v5_15
Syscalls for the x86_64 architecture (Linux v5.15).
v6_1
Syscalls for the x86_64 architecture (Linux v6.1).
v6_6
Syscalls for the x86_64 architecture (Linux v6.6).
v6_10
Syscalls for the x86_64 architecture (Linux v6.10).
v6_12
Syscalls for the x86_64 architecture (Linux v6.12).
x86
x86 architecture syscall definitions.
x86_64
x86_64 architecture syscall definitions.

Macros§

raw_syscall
Performs a raw syscall and returns a SyscallWord.
syscall
Performs a syscall and returns a Result<SyscallWord, Errno>.
syscall_args

Structs§

Errno
SyscallArgs
The 6 arguments of a syscall, raw untyped version.
SysnoMap
A map of syscalls to a type T.
SysnoMapIter
An iterator over the syscall (number, value) pairs contained in a SysnoMap.
SysnoMapValues
An iterator over the syscall values contained in a SysnoMap.
SysnoSet
A set of syscalls.
SysnoSetIter
An iterator over the syscalls contained in a SysnoSet.

Enums§

Sysno
Complete list of Linux syscalls.

Traits§

ErrnoSentinel

Functions§

syscall
Does a raw syscall.
syscall0
Issues a system call with 0 arguments.
syscall1
Issues a system call with 1 argument.
syscall2
Issues a system call with 2 arguments.
syscall3
Issues a system call with 3 arguments.
syscall4
Issues a system call with 4 arguments.
syscall5
Issues a system call with 5 arguments.
syscall6
Issues a system call with 6 arguments.

Type Aliases§

SyscallWord
System call argument/return type for x86_64 (64-bit)