Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rbpf/src/
H A Dstack.rs43 pub fn as_slice(&self) -> &[u8] { in as_slice() method
44 self.frame.as_slice() in as_slice()
H A Dinterpreter.rs146 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
153 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
160 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
168 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
176 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
184 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
192 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
200 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 8, insn_ptr)?; in execute_program()
221 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 1, insn_ptr)?; in execute_program()
229 check_mem_load(stacks.last().unwrap().as_slice(), x as u64, 2, insn_ptr)?; in execute_program()
[all …]
H A Dinsn_builder.rs328 self.instructions.as_slice() in into_bytes()
/DragonOS/kernel/src/bpf/map/
H A Dlru.rs41 let value = self.data.get(key).map(|v| v.as_slice()); in lookup_elem()
71 .map(|v| v.as_slice()) in lookup_and_delete_elem()
81 if k.as_slice() == key { in get_next_key()
89 next_key.copy_from_slice(k.as_slice()); in get_next_key()
H A Dhash_map.rs42 let value = self.data.get(key).map(|v| v.as_slice()); in lookup_elem()
73 .map(|v| v.as_slice()) in lookup_and_delete_elem()
83 if k.as_slice() == key { in get_next_key()
91 next_key.copy_from_slice(k.as_slice()); in get_next_key()
H A Dqueue.rs127 Ok(self.peek().map(|v| v.as_slice())) in lookup_elem()
/DragonOS/build-scripts/kernel_build/src/cfiles/
H A Dmod.rs74 c.files(files.as_slice()); in setup_files()
79 CargoHandler::emit_rerun_if_files_changed(files.as_slice()); in set_rerun_if_files_changed()
/DragonOS/docs/kernel/locking/
H A Dspinlock.md66 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
H A Dmutex.md60 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
/DragonOS/kernel/src/process/
H A Dexec.rs256 self.push_slice(ustack, envps.as_slice())?; in push_at()
260 self.push_slice(ustack, argps.as_slice())?; in push_at()
/DragonOS/build-scripts/kernel_build/src/kconfig/
H A Dmod.rs29 CargoHandler::emit_features(features.as_slice()); in build()
/DragonOS/kernel/src/libs/
H A Dvec_cursor.rs222 pub fn as_slice(&self) -> &[u8] { in as_slice() method
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs740 for off in &offsets.as_slice()[..offsets.len() - 1] {
1166 fs.gendisk.write_at(cursor.as_slice(), lba)?; in flush()
1371 fs.gendisk.write_at(cursor.as_slice(), lba)?; in flush()
2206 let mut s = String::from_utf16_lossy(self.name.as_slice()); in extracted_name()
2285 &self.name.as_slice()[start_idx..start_idx + 13], in next()
2295 &self.name.as_slice()[start_idx..start_idx + 13], in next()
H A Dfs.rs1116 self.gendisk.write_at(cursor.as_slice(), lba)?; in set_entry()
1139 self.gendisk.write_at(cursor.as_slice(), lba)?; in set_entry()
1194 self.gendisk.write_at(cursor.as_slice(), lba)?; in set_entry()
1356 gendisk.write_at(cursor.as_slice(), lba)?; in flush()
/DragonOS/kernel/src/perf/
H A Dbpf.rs213 pub fn as_slice(&self) -> &[u8] { in as_slice() method
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e.rs138 pub fn as_slice(&self) -> &[u8] { in as_slice() method
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs100 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method