Home
last modified time | relevance | path

Searched refs:with_capacity (Results 1 – 20 of 20) sorted by relevance

/DragonOS/kernel/crates/rbpf/src/
H A Dstack.rs25 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() method
/DragonOS/kernel/src/net/socket/
H A Dunix.rs31 let buffer = Arc::new(SpinLock::new(Vec::with_capacity(Self::DEFAULT_BUF_SIZE))); in new()
146 let buffer = Arc::new(SpinLock::new(Vec::with_capacity(Self::DEFAULT_BUF_SIZE))); in new()
/DragonOS/kernel/src/process/
H A Didle.rs34 let mut v: Vec<Arc<ProcessControlBlock>> = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in init_idle()
H A Dfork.rs128 set_tid: Vec::with_capacity(MAX_PID_NS_LEVEL), in new()
/DragonOS/kernel/src/bpf/map/
H A Dqueue.rs47 let data = Vec::with_capacity(attr.max_entries as usize); in new()
H A Dlru.rs113 let mut data = Vec::with_capacity(num_cpus as usize); in new()
H A Dhash_map.rs116 let mut data = Vec::with_capacity(num_cpus as usize); in new()
H A Darray_map.rs179 let mut data = Vec::with_capacity(num_cpus as usize); in new()
/DragonOS/kernel/src/driver/tty/
H A Dtty_driver.rs155 let mut ports: Vec<Arc<dyn TtyPort>> = Vec::with_capacity(count as usize); in new()
173 saved_termios: Vec::with_capacity(count as usize), in new()
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs122 let mut percpu_count = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()
/DragonOS/kernel/src/smp/cpu/
H A Dmod.rs91 let mut data = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()
/DragonOS/kernel/src/namespaces/
H A Dpid_namespace.rs95 let mut numbers = Vec::<UPid>::with_capacity(ns.level + 1); in alloc_pid()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e.rs316 let mut recv_buffers: Vec<E1000EBuffer> = Vec::with_capacity(recv_ring_length); in new()
317 let mut trans_buffers: Vec<E1000EBuffer> = Vec::with_capacity(trans_ring_length); in new()
/DragonOS/kernel/src/sched/
H A Dmod.rs981 CPU_IRQ_TIME = Some(Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize)); in sched_init()
987 let mut cpu_runqueue = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in sched_init()
/DragonOS/kernel/src/ipc/
H A Dsignal_types.rs474 q: Vec::with_capacity(capacity), in new()
/DragonOS/kernel/src/filesystem/vfs/
H A Dmount.rs233 let mut absolute_path = String::with_capacity( in do_absolute_path()
H A Dfile.rs667 let mut data = Vec::with_capacity(FileDescriptorVec::PROCESS_MAX_FD); in new()
H A Dsyscall.rs1828 let mut slices: Vec<&mut [u8]> = Vec::with_capacity(iovs.len()); in from_user()
1881 let mut buf: Vec<u8> = Vec::with_capacity(total_len); in new_buf()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs564 let mut v: Vec<(PhysAddr, PageFrameCount)> = Vec::with_capacity(60 * 1024); in test_buddy()
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui.rs539 chars: Vec::with_capacity(char_num), in new()