Home
last modified time | relevance | path

Searched refs:HashMap (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS/user/apps/test_ebpf/syscall_ebpf/syscall_ebpf-ebpf/src/ !
H A Dmain.rs6 use aya_ebpf::maps::HashMap;
38 static SYSCALL_LIST: HashMap<u32, u32> =
39 HashMap::<u32, u32>::with_max_entries(1024, 0);
/DragonOS/user/apps/user-manage/src/parser/ !
H A Dcmd.rs1 use std::collections::HashMap;
82 pub options: HashMap<CmdOption, String>,
95 pub options: HashMap<CmdOption, String>,
H A Dparser.rs3 use std::collections::HashMap;
19 let mut options = HashMap::new(); in parse()
104 let mut options = HashMap::new(); in parse()
/DragonOS/user/apps/test_ebpf/src/ !
H A Dmain.rs1 use aya::maps::HashMap;
35 let blocklist: HashMap<_, u32, u32> = in main()
36 HashMap::try_from(bpf.map("SYSCALL_LIST").unwrap()).unwrap(); in main()
/DragonOS/kernel/src/driver/virtio/ !
H A Dirq.rs2 use hashbrown::HashMap;
27 map: RwLock<HashMap<Arc<DeviceId>, Arc<dyn VirtIODevice>>>,
33 map: RwLock::new(HashMap::new()), in new()
/DragonOS/kernel/src/driver/base/block/ !
H A Dgendisk.rs7 use hashbrown::HashMap;
151 data: HashMap<u32, Arc<GenDisk>>,
158 data: HashMap::new(), in new()
184 type Target = HashMap<u32, Arc<GenDisk>>;
H A Dmanager.rs4 use hashbrown::HashMap;
41 disks: HashMap<BlockDevName, Arc<dyn BlockDevice>>,
47 disks: HashMap::new(), in new()
/DragonOS/kernel/src/mm/ !
H A Dc_adapter.rs6 use hashbrown::HashMap;
16 …static ref C_ALLOCATION_MAP: SpinLock<HashMap<VirtAddr, (VirtAddr, usize, usize)>> = SpinLock::new…
/DragonOS/kernel/src/driver/pci/ !
H A Droot.rs4 use hashbrown::HashMap;
233 pci_root: HashMap<SegmentGroupNumber, Arc<PciRoot>>,
240 pci_root: HashMap::new(), in new()
/DragonOS/kernel/src/namespaces/ !
H A Ducount.rs7 use hashbrown::HashMap;
178 counts: Mutex<HashMap<UKey, Arc<UCounts>>>,
184 counts: Mutex::new(HashMap::new()), in new()
/DragonOS/kernel/src/net/socket/ !
H A Dmod.rs10 use hashbrown::HashMap;
54 …pub static ref HANDLE_MAP: RwLock<HashMap<GlobalSocketHandle, SocketHandleItem>> = RwLock::new(Has…
497 tcp_port_table: SpinLock<HashMap<u16, Pid>>,
499 udp_port_table: SpinLock<HashMap<u16, Pid>>,
505 tcp_port_table: SpinLock::new(HashMap::new()), in new()
506 udp_port_table: SpinLock::new(HashMap::new()), in new()
/DragonOS/kernel/src/driver/block/cache/ !
H A Dcached_block_device.rs2 use hashbrown::HashMap;
336 map: HashMap<BlockId, CacheBlockAddr>,
342 map: HashMap::new(), in new()
/DragonOS/kernel/src/ipc/ !
H A Dshm.rs19 use hashbrown::{HashMap, HashSet};
120 id2shm: HashMap<ShmId, KernelShm>,
122 key2id: HashMap<ShmKey, ShmId>,
129 id2shm: HashMap::new(), in new()
130 key2id: HashMap::new(), in new()
/DragonOS/kernel/crates/rbpf/src/ !
H A Dlib.rs34 type HashMap<K, V> = BTreeMap<K, V>; typedef
123 helpers: HashMap<u32, ebpf::Helper>,
154 helpers: HashMap::new(), in new()
1208 helpers: &HashMap<u32, fn(u64, u64, u64, u64, u64) -> u64>, in register_helper_set()
1750 helpers: &HashMap<u32, fn(u64, u64, u64, u64, u64) -> u64>, in register_helper_set()
H A Djit.rs15 use crate::{ebpf, HashMap};
100 special_targets: HashMap<isize, usize>,
109 special_targets: HashMap::new(), in new()
479 helpers: &HashMap<u32, ebpf::Helper>, in jit_compile()
987 helpers: &HashMap<u32, ebpf::Helper>, in new()
H A Dcranelift.rs22 use super::{Error, HashMap, HashSet};
39 helpers: HashMap<u32, ebpf::Helper>,
40 helper_func_refs: HashMap<u32, FuncRef>,
61 pub(crate) fn new(helpers: HashMap<u32, ebpf::Helper>) -> Self { in new()
97 helper_func_refs: HashMap::new(), in new()
/DragonOS/kernel/crates/intertrait/src/ !
H A Dlib.rs74 use hashbrown::HashMap;
104 static CASTER_MAP: once_cell::sync::Lazy<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> =
122 static mut CASTER_MAP: Option<HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher>> = None;
125 pub fn caster_map() -> &'static HashMap<(TypeId, TypeId), BoxedCaster, BuildFastHasher> { in caster_map()
/DragonOS/kernel/src/driver/tty/ !
H A Dtty_driver.rs8 use hashbrown::HashMap;
132 ttys: SpinLock<HashMap<usize, Arc<TtyCore>>>,
172 ttys: SpinLock::new(HashMap::new()), in new()
242 pub fn ttys(&self) -> SpinLockGuard<HashMap<usize, Arc<TtyCore>>> { in ttys()
/DragonOS/kernel/src/filesystem/kernfs/ !
H A Dmod.rs8 use hashbrown::HashMap;
115 children: SpinLock::new(HashMap::new()), in create_root_inode()
135 children: SpinLock<HashMap<String, Arc<KernFSInode>>>,
411 children: SpinLock::new(HashMap::new()), in new()
/DragonOS/kernel/src/driver/tty/virtual_terminal/ !
H A Dmod.rs7 use hashbrown::HashMap;
138 consoles: HashMap<usize, Arc<VirtConsole>>,
152 let consoles = HashMap::new(); in new()
/DragonOS/kernel/src/libs/futex/ !
H A Dfutex.rs13 use hashbrown::HashMap;
35 data: SpinLock<HashMap<FutexKey, FutexHashBucket>>,
39 pub fn futex_map() -> SpinLockGuard<'static, HashMap<FutexKey, FutexHashBucket>> { in futex_map()
214 data: SpinLock::new(HashMap::new()), in init()
/DragonOS/kernel/src/exception/ !
H A Dirqdomain.rs8 use hashbrown::HashMap;
516 map: HashMap::new(), in new()
577 map: HashMap<HardwareIrqNumber, Arc<IrqData>>,
/DragonOS/kernel/src/driver/base/device/ !
H A Dbus.rs26 use hashbrown::HashMap;
242 kset_bus_map: RwLock<HashMap<Arc<KSet>, Arc<dyn Bus>>>,
248 kset_bus_map: RwLock::new(HashMap::new()), in new()
/DragonOS/user/apps/user-manage/src/check/ !
H A Dcheck.rs7 collections::{HashMap, HashSet},
311 fn parse_options(options: &HashMap<CmdOption, String>) -> UModInfo { in parse_options()
/DragonOS/kernel/src/process/ !
H A Dmod.rs17 use hashbrown::HashMap;
86 static ALL_PROCESS: SpinLock<Option<HashMap<Pid, Arc<ProcessControlBlock>>>> = SpinLock::new(None);
131 ALL_PROCESS.lock_irqsave().replace(HashMap::new()); in init()

12