Searched refs:with_capacity (Results 1 – 20 of 20) sorted by relevance
25 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() method
31 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()
34 let mut v: Vec<Arc<ProcessControlBlock>> = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in init_idle()
128 set_tid: Vec::with_capacity(MAX_PID_NS_LEVEL), in new()
47 let data = Vec::with_capacity(attr.max_entries as usize); in new()
113 let mut data = Vec::with_capacity(num_cpus as usize); in new()
116 let mut data = Vec::with_capacity(num_cpus as usize); in new()
179 let mut data = Vec::with_capacity(num_cpus as usize); in new()
155 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()
122 let mut percpu_count = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()
91 let mut data = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()
95 let mut numbers = Vec::<UPid>::with_capacity(ns.level + 1); in alloc_pid()
316 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()
981 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()
474 q: Vec::with_capacity(capacity), in new()
233 let mut absolute_path = String::with_capacity( in do_absolute_path()
667 let mut data = Vec::with_capacity(FileDescriptorVec::PROCESS_MAX_FD); in new()
1828 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()
564 let mut v: Vec<(PhysAddr, PageFrameCount)> = Vec::with_capacity(60 * 1024); in test_buddy()
539 chars: Vec::with_capacity(char_num), in new()