Skip to main content

syscall4

Function syscall4 

Source
pub unsafe fn syscall4(
    n: usize,
    a1: usize,
    a2: usize,
    a3: usize,
    a4: usize,
) -> isize
Available on crate features sys-syscall and sys only.
Expand description

执行 4 参数裸系统调用。

§Safety

调用此函数必须保证参数符合目标调用约定,指针参数有效。

§Feature Requirement

需要启用 "sys-syscall" 特性。