Searched refs:as_slice (Results 1 – 6 of 6) sorted by relevance
/DragonOS-0.1.8/docs/kernel/locking/ |
D | spinlock.md | 66 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
|
D | mutex.md | 60 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
|
/DragonOS-0.1.8/kernel/src/process/ |
D | exec.rs | 255 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/ |
D | vec_cursor.rs | 228 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 332 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()
|
D | fs.rs | 1080 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()
|