MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / write

Function write

src/fs/ata.rs:539–543  ·  view source on GitHub ↗

Write

(bus: u8, drive: u8, blk: u32, buffer: &[u8])

Source from the content-addressed store, hash-verified

537
538// Write
539pub fn write(bus: u8, drive: u8, blk: u32, buffer: &[u8]) -> Result<(), ()>
540{
541 let mut buses = BUSES.lock();
542 buses[bus as usize].write(drive, blk, buffer)
543}
544
545
546// Implementation of fmt::Display for the Drive struct

Callers 4

writeMethod · 0.70
cp_fileFunction · 0.50
writeMethod · 0.50
writeMethod · 0.50

Calls 2

lockMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected