Function libseccomp::get_syscall_from_name[][src]

pub fn get_syscall_from_name(name: &str, arch: Option<ScmpArch>) -> Result<i32>
Expand description

get_syscall_from_name returns the number of a syscall by name for a given architecture’s ABI.

Accepts the name of a syscall and an architecture constant. If arch argument is None, the functions returns the number of a syscall on the kernel’s native architecture. Returns the number of the syscall, or an error if an invalid architecture is passed or a syscall with that name was not found.