Skip to main content

read_linear

Function read_linear 

Source
pub fn read_linear(
    state: &CpuState,
    mem: &dyn GuestMemory,
    linear: u64,
    buf: &mut [u8],
) -> usize
Expand description

Reads guest memory at a linear address, crossing page boundaries as needed. Returns the number of bytes actually read (fewer than buf.len() if a later page is not mapped).