pub fn get_syscall_from_name(
    name: &str,
    arch: Option<ScmpArch>
) -> Result<i32, SeccompError>
👎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 syscall
  • arch - An architecture token as Option type If arch argument is None, 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.