Searched refs:max_entries (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/src/bpf/map/ |
H A D | queue.rs | 38 max_entries: u32, field 44 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 0 { in new() 47 let data = Vec::with_capacity(attr.max_entries as usize); in new() 49 max_entries: attr.max_entries, in new() 57 if self.data.len() == self.max_entries as usize { in push() 105 if self.data.len() == self.max_entries as usize { in push()
|
H A D | array_map.rs | 25 max_entries: u32, field 45 pub fn new(elem_size: u32, max_entries: u32) -> Self { in new() 47 let total_size = elem_size * max_entries; in new() 70 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 4 { in new() 74 let data = ArrayMapData::new(elem_size as u32, attr.max_entries); in new() 76 max_entries: attr.max_entries, in new() 88 if index >= self.max_entries { in lookup_elem() 99 if index >= self.max_entries { in update_elem() 118 for i in 0..self.max_entries { in for_each_elem() 141 if index == self.max_entries - 1 { in get_next_key() [all …]
|
H A D | util.rs | 12 pub max_entries: u32, field 34 max_entries: u.max_entries, in try_from()
|
H A D | lru.rs | 27 if attr.value_size == 0 || attr.max_entries == 0 { in new() 31 _max_entries: attr.max_entries, in new() 33 NonZero::new(attr.max_entries as usize).ok_or(SystemError::EINVAL)?, in new()
|
H A D | hash_map.rs | 27 if attr.value_size == 0 || attr.max_entries == 0 { in new() 32 _max_entries: attr.max_entries, in new()
|
/DragonOS/kernel/src/include/bindings/ |
H A D | linux_bpf.rs | 514 pub max_entries: __u32, field 1043 pub max_entries: __u32, field
|