Skip to main content

write_sectors

Function write_sectors 

Source
fn write_sectors(
    mem: &mut impl BiosMemory,
    disk: &mut dyn BiosDisk,
    lba: u64,
    count: u64,
    buffer: u32,
) -> Result<(), u8>
Expand description

Writes count sectors from a guest buffer, one sector at a time.

Mirrors read_sectors: the guest buffer is read byte by byte so an unmapped page fails the call instead of touching host memory.