Home
last modified time | relevance | path

Searched refs:BlockIter (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.9/kernel/src/driver/base/block/
Dblock_device.rs41 pub struct BlockIter { struct
59 impl BlockIter { argument
61 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new() argument
62 return BlockIter { in new()
69 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock() argument
70 return BlockIter { in new_multiblock()
132 impl Iterator for BlockIter { implementation
248 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in write_at_bytes()
288 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in read_at_bytes()