Skip to main content

syscall2

Function syscall2 

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

执行 2 参数裸系统调用。

§Safety

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

§Feature Requirement

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