Home
last modified time | relevance | path

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

/DragonOS-0.1.8/docs/kernel/locking/
Dspinlock.md66 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
Dmutex.md60 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs255 self.push_slice(ustack, envps.as_slice())?; in push_at()
259 self.push_slice(ustack, argps.as_slice())?; in push_at()
/DragonOS-0.1.8/kernel/src/libs/
Dvec_cursor.rs228 pub fn as_slice(&self) -> &[u8] { in as_slice() method
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs332 zeroes.as_slice(), in zero_range()
750 for off in &offsets.as_slice()[..offsets.len() - 1] {
1125 .write_at(lba, 1 * fs.lba_per_sector(), cursor.as_slice())?; in flush()
1331 .write_at(lba, 1 * fs.lba_per_sector(), cursor.as_slice())?; in flush()
2170 let mut s = String::from_utf16_lossy(self.name.as_slice()); in to_string()
2249 &self.name.as_slice()[start_idx..start_idx + 13], in next()
2259 &self.name.as_slice()[start_idx..start_idx + 13], in next()
Dfs.rs1080 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1104 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1160 self.partition.disk().write_at(lba, 1, cursor.as_slice())?; in set_entry()
1178 .write_at(offset, zeros.len(), zeros.as_slice())?; in zero_cluster()
1322 partition.disk().write_at(lba, 1, cursor.as_slice())?; in flush()