/DragonOS/kernel/crates/rbpf/src/ |
H A D | asm_parser.rs | 11 vec::Vec, 128 use alloc::{string::ToString, vec}; 188 operands: vec![], in test_instruction() 199 operands: vec![Operand::Integer(2)], in test_instruction() 210 operands: vec![Operand::Register(1), Operand::Integer(2)], in test_instruction() 221 operands: vec![Operand::Register(2), Operand::Memory(1, 12)], in test_instruction() 232 operands: vec![Operand::Register(3), Operand::Integer(8)], in test_instruction() 243 operands: vec![ in test_instruction() 259 operands: vec![ in test_instruction() 274 assert_eq!(parse(""), Ok(vec![])); in test_empty() [all …]
|
H A D | stack.rs | 1 use crate::{ebpf::STACK_SIZE, vec, Vec}; 19 frame: vec![0; STACK_SIZE], in new() 30 frame: vec![0; capacity], in with_capacity()
|
H A D | assembler.rs | 10 vec, 11 vec::Vec, 215 let mut result: Vec<Insn> = vec![]; in assemble_internal() 272 let mut result: Vec<u8> = vec![]; in assemble()
|
H A D | lib.rs | 30 use alloc::{collections::BTreeMap, format, vec, vec::Vec}; 626 let buffer = vec![0u8; get_buff_len(data_offset, data_end_offset)]; in new() 674 let buffer = vec![0u8; get_buff_len(data_offset, data_end_offset)]; in set_program() 1317 let mut mbuff = vec![]; in execute_program_jit() 1385 let mut mbuff = vec![]; in execute_program_cranelift()
|
/DragonOS/kernel/crates/rbpf/tests/ |
H A D | assembler.rs | 28 assert_eq!(asm(""), Ok(vec![])); in test_empty() 34 assert_eq!(asm("exit"), Ok(vec![insn(ebpf::EXIT, 0, 0, 0, 0)])); in test_exit() 42 Ok(vec![insn(ebpf::ADD64_REG, 1, 3, 0, 0)]) in test_add64() 46 Ok(vec![insn(ebpf::ADD64_IMM, 1, 0, 0, 5)]) in test_add64() 53 assert_eq!(asm("neg64 r1"), Ok(vec![insn(ebpf::NEG64, 1, 0, 0, 0)])); in test_neg64() 61 Ok(vec![insn(ebpf::LD_W_REG, 1, 2, 5, 0)]) in test_ldxw() 70 Ok(vec![insn(ebpf::ST_W_IMM, 2, 0, 5, 7)]) in test_stw() 79 Ok(vec![insn(ebpf::ST_W_REG, 2, 8, 5, 0)]) in test_stxw() 86 assert_eq!(asm("ja +8"), Ok(vec![insn(ebpf::JA, 0, 0, 8, 0)])); in test_ja() 87 assert_eq!(asm("ja -3"), Ok(vec![insn(ebpf::JA, 0, 0, -3, 0)])); in test_ja() [all …]
|
/DragonOS/docs/kernel/libs/lib_ui/ |
H A D | textui.md | 6 …显示,往屏幕窗口中输出打印文本信息,往窗口显示文本分成两种情况:一种是当内存管理单元(mm)未被初始化时,不能进行动态内存分配,限制颇多(例如不能使用vec,mpsc等),所以直接往窗口的帧缓冲区… 30   textui_putchar()要处理两种情况:一种是当内存管理单元(mm)未被初始化时,不能进行动态内存分配,限制颇多(例如不能使用vec,mpsc等),所以直接往窗口的帧…
|
/DragonOS/kernel/src/namespaces/ |
H A D | user_namespace.rs | 9 use alloc::vec::Vec; 100 extent: vec![UidGidExtent::new(); UID_GID_MAP_MAX_BASE_EXTENTS], in new() 130 ucount_max: vec![UCOUNT_MAX; Counts as usize], in new() 132 rlimit_max: vec![65535, 10, 32000, 64 * 1024], in new()
|
/DragonOS/kernel/src/driver/block/cache/ |
H A D | mod.rs | 1 use alloc::vec::Vec;
|
H A D | cache_block.rs | 1 use alloc::{boxed::Box, vec::Vec};
|
/DragonOS/kernel/src/net/socket/ |
H A D | inet.rs | 1 use alloc::{boxed::Box, sync::Arc, vec::Vec}; 54 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new() 55 vec![0; Self::DEFAULT_RX_BUF_SIZE], in new() 58 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new() 59 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new() 175 let mut buffer: Vec<u8> = vec![0u8; len + 20]; in write() 265 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new() 266 vec![0; Self::DEFAULT_RX_BUF_SIZE], in new() 269 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new() 270 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new() [all …]
|
/DragonOS/kernel/src/driver/base/map/ |
H A D | mod.rs | 8 use alloc::{collections::BTreeMap, sync::Arc, vec::Vec}; 49 Self(vec![BTreeMap::new(); KOBJMAP_HASH_SIZE]) in default() 142 DevsMap(vec![Vec::new(); DEV_MAJOR_HASH_SIZE as usize]) in default()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | mod.rs | 1 use alloc::vec::Vec;
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | entry.rs | 3 use alloc::vec::Vec;
|
H A D | copy_up.rs | 21 let mut buffer = vec![0u8; metadata.size as usize]; in copy_up()
|
/DragonOS/kernel/src/mm/ |
H A D | c_adapter.rs | 5 use alloc::vec::Vec; 33 let space: Vec<u8> = vec![0u8; size]; in do_kmalloc()
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | verifier.rs | 9 use alloc::{sync::Arc, vec::Vec}; 40 let mut raw_file_ptr = vec![]; in relocation()
|
/DragonOS/kernel/src/arch/x86_64/interrupt/ |
H A D | ipi.rs | 38 IpiKind::SpecVector(vec) => ArchIpiKind::SpecVector(vec), in from() 48 ArchIpiKind::SpecVector(vec) => (vec.data() & 0xFF) as u8, in from()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | build.rs | 20 let mut args = vec!["build"]; in build_project()
|
H A D | build_ebpf.rs | 45 let mut args = vec![ in build_ebpf()
|
/DragonOS/kernel/src/cgroup/ |
H A D | mod.rs | 4 use alloc::{collections::LinkedList, rc::Weak, sync::Arc, vec::Vec};
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | alloc_bitmap.rs | 3 use alloc::vec::Vec; 16 let data = vec![0usize; (elements + usize::BITS as usize - 1) / (usize::BITS as usize)]; in new()
|
/DragonOS/kernel/crates/rbpf/examples/ |
H A D | to_json.rs | 28 let mut json_insns = vec![]; in to_json()
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | lib.rs | 75 Err(err) => vec![err.to_compile_error(), input.into()] in cast_to()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | app.rs | 48 tabs: TabsState::new(vec!["Tab0", "Tab1", "Tab2"]), in new() 51 stateful_logs: StatefulList::with_items(vec![]), in new()
|
/DragonOS/kernel/src/filesystem/ |
H A D | mbr.rs | 5 vec::Vec, 90 let mut buf: Vec<u8> = vec![0; size_of::<MbrDiskPartionTable>()]; in from_disk()
|