syscall

Function syscall 

Source
pub async fn syscall(
    num: target_ulong,
    args: impl IntoSyscallArgs,
) -> target_ulong
Available on crate feature syscall-injection only.
Expand description

Perform a system call in the guest. Should only be run within an injector being run by run_injector

Examples found in repository?
examples/syscall_injection.rs (line 9)
8async fn getpid() -> target_ulong {
9    syscall(GET_PID, ()).await
10}
11
12async fn getuid() -> target_ulong {
13    syscall(GET_UID, ()).await
14}