Home
last modified time | relevance | path

Searched refs:max_entries (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/bpf/map/
H A Dqueue.rs38 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 Darray_map.rs25 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 Dutil.rs12 pub max_entries: u32, field
34 max_entries: u.max_entries, in try_from()
H A Dlru.rs27 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 Dhash_map.rs27 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 Dlinux_bpf.rs514 pub max_entries: __u32, field
1043 pub max_entries: __u32, field