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

Interface BlkDevIO

src/fs/blkdev.rs:31–37  ·  view source on GitHub ↗

BlkDevIO trait

Source from the content-addressed store, hash-verified

29
30// BlkDevIO trait
31pub trait BlkDevIO
32{
33 fn read(&self, address: u32, buffer: &mut [u8]) -> Result<(), ()>;
34 fn write(&mut self, address: u32, buffer: &[u8]) -> Result<(), ()>;
35 fn blksize(&self) -> usize;
36 fn blkcount(&self) -> usize;
37}
38
39
40// Implementation of the BlkDevIO trait for BlkDev

Callers

nothing calls this directly

Implementers 1

blkdev.rssrc/fs/blkdev.rs

Calls

no outgoing calls

Tested by

no test coverage detected