MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / BlockDevice

Interface BlockDevice

easy-fs/src/block_dev.rs:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use core::any::Any;
2
3pub trait BlockDevice: Send + Sync + Any {
4 fn read_block(&self, block_id: usize, buf: &mut [u8]);
5 fn write_block(&self, block_id: usize, buf: &[u8]);
6 fn handle_irq(&self);
7}

Callers

nothing calls this directly

Implementers 2

virtio_blk.rsos/src/drivers/block/virtio_blk.rs
main.rseasy-fs-fuse/src/main.rs

Calls

no outgoing calls

Tested by

no test coverage detected