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

Function read

src/fs/ata.rs:531–535  ·  view source on GitHub ↗

Read

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

Source from the content-addressed store, hash-verified

529
530// Read
531pub fn read(bus: u8, drive: u8, blk: u32, buffer: &mut [u8]) -> Result<(), ()>
532{
533 let mut buses = BUSES.lock();
534 buses[bus as usize].read(drive, blk, buffer)
535}
536
537
538// Write

Callers 15

allocMethod · 0.70
blkidxMethod · 0.70
buffidxMethod · 0.70
freeMethod · 0.70
next_free_addressMethod · 0.70
freeallFunction · 0.70
allocMethod · 0.70
nextMethod · 0.70
readMethod · 0.70
readMethod · 0.70
writeMethod · 0.70
item_delMethod · 0.70

Calls 2

lockMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected