nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
/// Asynchronous mlock operation
pub unsafe fn aio_mlock(job: &mut aiocb_t) -> Result<(), Errno> {
    let job_ptr = core::ptr::from_mut(job) as usize;
    unsafe { syscall1(SYS_AIO_MLOCK, job_ptr).map(drop) }
}