Home
last modified time | relevance | path

Searched refs:num_cpus (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/bpf/map/
H A Darray_map.rs178 let num_cpus = PerCpu::MAX_CPU_NUM; in new() localVariable
179 let mut data = Vec::with_capacity(num_cpus as usize); in new()
180 for _ in 0..num_cpus { in new()
236 let num_cpus = smp_cpu_manager().possible_cpus_count(); in new() localVariable
237 if attr.key_size != 4 || attr.value_size != 4 || attr.max_entries != num_cpus { in new()
240 let fds = ArrayMapData::new(4, num_cpus); in new()
265 let num_cpus = smp_cpu_manager().possible_cpus_count(); in for_each_elem() localVariable
266 for i in 0..num_cpus { in for_each_elem()
H A Dlru.rs112 let num_cpus = PerCpu::MAX_CPU_NUM; in new() localVariable
113 let mut data = Vec::with_capacity(num_cpus as usize); in new()
114 for _ in 0..num_cpus { in new()
H A Dhash_map.rs115 let num_cpus = PerCpu::MAX_CPU_NUM; in new() localVariable
116 let mut data = Vec::with_capacity(num_cpus as usize); in new()
117 for _ in 0..num_cpus { in new()