nc 0.9.7

Access system calls directly
Documentation
1
2
3
4
5
6
/// Load kld files into the kernel.
pub unsafe fn kldload<P: AsRef<Path>>(file: P) -> Result<i32, Errno> {
    let file = CString::new(file.as_ref());
    let file_ptr = file.as_ptr() as usize;
    syscall1(SYS_KLDLOAD, file_ptr).map(|ret| ret as i32)
}