Skip to main content

syscall1

Function syscall1 

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

执行 1 参数裸系统调用。

§Safety

调用此函数必须保证:

  1. n 合法且 a1 满足该调用的指针/值约束;
  2. 若 a1 为指针,调用期间其指向内存有效。

§Feature Requirement

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