Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/io/
Ddevice.rs121 let buf_slice = &mut buf[buf_begin..buf_end]; in read_at() localVariable
127 BlockDevice::read_at(self, range.lba_start, count, buf_slice)?; in read_at()
138 buf_slice.copy_from_slice(&temp[range.begin..range.end]); in read_at()
157 let buf_slice = &buf[buf_begin..buf_end]; in write_at() localVariable
162 BlockDevice::write_at(self, range.lba_start, count, buf_slice)?; in write_at()
173 temp[range.begin..range.end].copy_from_slice(&buf_slice); in write_at()