Searched refs:value_size (Results 1 – 9 of 9) sorted by relevance
/DragonOS/kernel/src/bpf/helper/ |
H A D | mod.rs | 126 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 D | mod.rs | 129 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 D | util.rs | 11 pub value_size: u32, field 33 value_size: u.value_size, in try_from()
|
H A D | hash_map.rs | 27 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 D | array_map.rs | 70 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 D | queue.rs | 44 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 0 { in new()
|
H A D | lru.rs | 27 if attr.value_size == 0 || attr.max_entries == 0 { in new()
|
/DragonOS/kernel/src/perf/ |
H A D | util.rs | 120 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 D | linux_bpf.rs | 513 pub value_size: __u32, field 1042 pub value_size: __u32, field
|