Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 47) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs3 use alloc::{collections::BTreeMap, sync::Arc, vec::Vec};
36 Self(vec![BTreeMap::new(); KOBJMAP_HASH_SIZE]) in default()
/DragonOS-0.1.8/kernel/src/net/
Dsocket.rs2 use alloc::{boxed::Box, sync::Arc, vec::Vec};
27 … pub static ref SOCKET_SET: SpinLock<SocketSet<'static >> = SpinLock::new(SocketSet::new(vec![]));
247 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
248 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new()
251 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
252 vec![0; Self::DEFAULT_RX_BUF_SIZE], in new()
350 let mut buffer: Vec<u8> = vec![0u8; len + 20]; in write()
430 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
431 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new()
434 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
[all …]
Dnet_core.rs55 let mut sockets = smoltcp::iface::SocketSet::new(vec![]); in dhcp_query()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs3 use alloc::{string::String, vec::Vec};
166 let argv = vec![String::from("/bin/shell.elf")]; in rs_exec_init_process()
167 let envp = vec![String::from("PATH=/bin")]; in rs_exec_init_process()
/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs5 use alloc::vec::Vec;
81 vec![0u8; size] in do_kmalloc()
Dpercpu.rs3 use alloc::vec::Vec;
/DragonOS-0.1.8/kernel/src/libs/
Dnotifier.rs7 use alloc::{sync::Arc, vec::Vec};
23 Self(vec![]) in new()
Drbtree.rs1615 let vec = vec![(1, 'a'), (2, 'b'), (3, 'c')]; in test_keys() localVariable
1616 let map: RBTree<_, _> = vec.into_iter().collect(); in test_keys()
1626 let vec = vec![(1, 'a'), (2, 'b'), (3, 'c')]; in test_values() localVariable
1627 let map: RBTree<_, _> = vec.into_iter().collect(); in test_values()
1637 let vec = vec![(1, 1), (2, 2), (3, 3)]; in test_values_mut() localVariable
1638 let mut map: RBTree<_, _> = vec.into_iter().collect(); in test_values_mut()
Dwait_queue.rs2 use alloc::{collections::LinkedList, vec::Vec};
Dvec_cursor.rs5 use alloc::vec::Vec;
Dprintk.rs7 use alloc::vec::Vec;
Delf.rs7 use alloc::vec::Vec;
303 let mut buf = vec![0u8; buf_size]; in do_load_file()
417 let mut shdr_buf = vec![0u8; shdr_buf_size as usize]; in parse_segments()
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs10 vec::Vec,
69 CompatibleTable::new(vec!["platform"]) in get_compatible_table()
284 CompatibleTable::new(vec!["platform"]) in compatible_table()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs6 use alloc::{sync::Arc, vec::Vec};
54 ChrDevs(vec![Vec::new(); CHARDEV_MAJOR_HASH_SIZE]) in default()
/DragonOS-0.1.8/kernel/src/syscall/
Duser_access.rs4 use alloc::{string::String, vec::Vec};
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs10 vec::Vec,
Dzero_dev.rs10 vec::Vec,
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs13 vec::Vec,
Dmod.rs25 use alloc::{format, string::String, sync::Arc, vec::Vec};
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs132 platform::CompatibleTable::new(vec!["uart"]) in compatible_table()
255 return CompatibleTable::new(vec!["uart"]); in compatible_table()
/DragonOS-0.1.8/kernel/src/sched/
Drt.rs3 use alloc::{boxed::Box, collections::LinkedList, vec::Vec};
Dcfs.rs3 use alloc::{boxed::Box, vec::Vec};
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs180 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs3 use alloc::{collections::BTreeMap, string::String, sync::Arc, vec::Vec};
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs227 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()

12