pub fn alloc(addr: usize, bytes: usize) -> Result<(), io::Error> {
    unsafe {
        if mprotect(addr as *mut _, bytes, self::prot(Protection::ReadWrite)) == 0 {
            Ok(())
        } else {
            Err(io::Error::last_os_error())
        }
    }
}
/// Allocate already reserved readable and writeable memory.
///
/// This can assume that `addr` is already reserved and that `bytes` fits in
/// the reserved memory.
Allocate already reserved readable and writeable memory.
This can assume that `addr` is already reserved and that `bytes` fits in
the reserved memory.
Allocate already reserved readable and writeable memory . This can assume that ` addr ` is already reserved and that ` bytes ` fits in the reserved memory .
pub fn alloc(addr: usize, bytes: usize) -> Result<(), io::Error> {
    unsafe {
        if mprotect(addr as *mut _, bytes, self::prot(Protection::ReadWrite)) == 0 {
            Ok(())
        } else {
            Err(io::Error::last_os_error())
        }
    }
}
pub fn alloc ( addr : usize , bytes : usize ) -> Result < ( ) , io :: Error > { unsafe { if mprotect ( addr as * mut _ , bytes , self :: prot ( Protection :: ReadWrite ) ) == 0 { Ok ( ( ) ) } else { Err ( io :: Error :: last_os_error ( ) ) } } }
Allocate already reserved readable and writeable memory.
Allocate already reserved readable and writeable memory .
addr
usize
bytes
usize
addr
usize
bytes
usize