Home
last modified time | relevance | path

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

12

/DragonOS-0.1.7/kernel/src/net/
Dsocket.rs2 use alloc::{boxed::Box, sync::Arc, vec::Vec};
26 … pub static ref SOCKET_SET: SpinLock<SocketSet<'static >> = SpinLock::new(SocketSet::new(vec![]));
134 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
135 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new()
138 vec![raw::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
139 vec![0; Self::DEFAULT_RX_BUF_SIZE], in new()
228 let mut buffer: Vec<u8> = vec![0u8; len + 20]; in write()
308 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
309 vec![0; Self::DEFAULT_TX_BUF_SIZE], in new()
312 vec![udp::PacketMetadata::EMPTY; Self::DEFAULT_METADATA_BUF_SIZE], in new()
[all …]
Dnet_core.rs52 let mut sockets = smoltcp::iface::SocketSet::new(vec![]); in dhcp_query()
/DragonOS-0.1.7/kernel/src/driver/base/platform/
Dmod.rs10 vec::Vec,
69 CompatibleTable::new(vec!["platform"]) in get_compatible_table()
282 CompatibleTable::new(vec!["platform"]) in get_compatible_table()
/DragonOS-0.1.7/kernel/src/filesystem/devfs/
Dnull_dev.rs10 vec::Vec,
Dzero_dev.rs10 vec::Vec,
/DragonOS-0.1.7/kernel/src/libs/
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};
Dprintk.rs4 use alloc::vec::Vec;
Dvec_cursor.rs5 use alloc::vec::Vec;
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dahci_inode.rs13 vec::Vec,
Dmod.rs25 use alloc::{format, string::String, sync::Arc, vec::Vec};
Dhba.rs1 use alloc::vec::Vec;
/DragonOS-0.1.7/kernel/src/sched/
Drt.rs3 use alloc::{boxed::Box, collections::LinkedList, vec::Vec};
Dcfs.rs3 use alloc::{boxed::Box, vec::Vec};
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs180 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dsyscall.rs3 use alloc::{boxed::Box, string::ToString, vec::Vec};
479 let mut slices: Vec<&mut [u8]> = vec![]; in from_user()
Dfile.rs3 use alloc::{boxed::Box, string::String, sync::Arc, vec::Vec};
Dmount.rs316 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
Dmod.rs11 use alloc::{string::String, sync::Arc, vec::Vec};
/DragonOS-0.1.7/kernel/src/ipc/
Dpipe.rs227 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
Dsignal_types.rs7 use alloc::vec::Vec;
/DragonOS-0.1.7/kernel/src/io/
Ddevice.rs3 use alloc::{sync::Arc, vec::Vec};
/DragonOS-0.1.7/kernel/src/filesystem/fat/
Dbpb.rs2 use alloc::{sync::Arc, vec::Vec};
/DragonOS-0.1.7/kernel/src/driver/tty/
Dtty_device.rs224 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> { in list()
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/
Dmod.rs15 vec::Vec,

12