Home
last modified time | relevance | path

Searched refs:value_size (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/src/bpf/helper/
H A Dmod.rs126 let value_size = map.value_size(); in raw_map_update_elem() localVariable
129 let value = core::slice::from_raw_parts(value as *const u8, value_size); in raw_map_update_elem()
245 let value_size = map.value_size(); in raw_map_push_elem() localVariable
246 let value = core::slice::from_raw_parts(value as *const u8, value_size); in raw_map_push_elem()
266 let value_size = map.value_size(); in raw_map_pop_elem() localVariable
267 let value = core::slice::from_raw_parts_mut(value as *mut u8, value_size); in raw_map_pop_elem()
287 let value_size = map.value_size(); in raw_map_peek_elem() localVariable
288 let value = core::slice::from_raw_parts_mut(value as *mut u8, value_size); in raw_map_peek_elem()
/DragonOS/kernel/src/bpf/map/
H A Dmod.rs129 pub fn value_size(&self) -> usize { in value_size() method
130 self.meta.value_size as usize in value_size()
260 let value_size = meta.value_size as usize; in bpf_map_update_elem() localVariable
263 let value_buf = UserBufferReader::new(arg.value as *const u8, value_size, true)?; in bpf_map_update_elem()
290 let value_size = meta.value_size as usize; in bpf_lookup_elem() localVariable
293 let mut value_buf = UserBufferWriter::new(arg.value as *mut u8, value_size, true)?; in bpf_lookup_elem()
393 let value_size = meta.value_size as usize; in bpf_map_lookup_and_delete_elem() localVariable
396 let mut value_buf = UserBufferWriter::new(arg.value as *mut u8, value_size, true)?; in bpf_map_lookup_and_delete_elem()
H A Dutil.rs11 pub value_size: u32, field
33 value_size: u.value_size, in try_from()
H A Dhash_map.rs27 if attr.value_size == 0 || attr.max_entries == 0 { in new()
30 let value_size = round_up(attr.value_size as usize, 8); in new() localVariable
34 _value_size: value_size as u32, in new()
H A Darray_map.rs70 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 4 { in new()
73 let elem_size = round_up(attr.value_size as usize, 8); in new()
237 if attr.key_size != 4 || attr.value_size != 4 || attr.max_entries != num_cpus { in new()
H A Dqueue.rs44 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 0 { in new()
H A Dlru.rs27 if attr.value_size == 0 || attr.max_entries == 0 { in new()
/DragonOS/kernel/src/perf/
H A Dutil.rs120 pub fn calculate_size(value_size: usize) -> usize { in calculate_size()
121 size_of::<SampleHeader>() + value_size in calculate_size()
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs513 pub value_size: __u32, field
1042 pub value_size: __u32, field