/DragonOS/kernel/crates/rbpf/src/ |
H A D | stack.rs | 43 pub fn as_slice(&self) -> &[u8] { in as_slice() method 44 self.frame.as_slice() in as_slice()
|
H A D | interpreter.rs | 146 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 D | insn_builder.rs | 328 self.instructions.as_slice() in into_bytes()
|
/DragonOS/kernel/src/bpf/map/ |
H A D | lru.rs | 41 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 D | hash_map.rs | 42 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 D | queue.rs | 127 Ok(self.peek().map(|v| v.as_slice())) in lookup_elem()
|
/DragonOS/build-scripts/kernel_build/src/cfiles/ |
H A D | mod.rs | 74 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 D | spinlock.md | 66 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
|
H A D | mutex.md | 60 assert!(g.as_slice() == [1, 2, 2] || g.as_slice() == [2, 2, 1]);
|
/DragonOS/kernel/src/process/ |
H A D | exec.rs | 256 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 D | mod.rs | 29 CargoHandler::emit_features(features.as_slice()); in build()
|
/DragonOS/kernel/src/libs/ |
H A D | vec_cursor.rs | 222 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | entry.rs | 740 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 D | fs.rs | 1116 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 D | bpf.rs | 213 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e.rs | 138 pub fn as_slice(&self) -> &[u8] { in as_slice() method
|
/DragonOS/kernel/src/include/bindings/ |
H A D | linux_bpf.rs | 100 pub unsafe fn as_slice(&self, len: usize) -> &[T] { in as_slice() method
|