Function libseccomp::get_syscall_from_name
source · [−]👎Deprecated since 0.2.3: Use ScmpSyscall::from_name* instead.
Expand description
Gets the number of a syscall by name for a given architecture’s ABI.
This function returns the number of the syscall.
Arguments
name
- The name of a syscallarch
- An architecture token asOption
type If arch argument isNone
, the functions returns the number of a syscall on the kernel’s native architecture.
Errors
If an invalid string for the syscall name is specified or a syscall with that name is not found, an error will be returned.