Searched refs:key_size (Results 1 – 7 of 7) sorted by relevance
/DragonOS/kernel/src/bpf/map/ |
H A D | mod.rs | 114 assert_ne!(meta.key_size, 0); in new() 125 pub fn key_size(&self) -> usize { in key_size() method 126 self.meta.key_size as usize in key_size() 259 let key_size = meta.key_size as usize; in bpf_map_update_elem() localVariable 262 let key_buf = UserBufferReader::new(arg.key as *const u8, key_size, true)?; in bpf_map_update_elem() 289 let key_size = meta.key_size as usize; in bpf_lookup_elem() localVariable 292 let key_buf = UserBufferReader::new(arg.key as *const u8, key_size, true)?; in bpf_lookup_elem() 318 let key_size = meta.key_size as usize; in bpf_map_get_next_key() localVariable 321 let key_buf = UserBufferReader::new(key_ptr as *const u8, key_size, true)?; in bpf_map_get_next_key() 328 let mut next_key_buf = UserBufferWriter::new(arg.next_key as *mut u8, key_size, true)?; in bpf_map_get_next_key() [all …]
|
H A D | util.rs | 10 pub key_size: u32, field 32 key_size: u.key_size, in try_from()
|
H A D | queue.rs | 44 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 0 { in new()
|
H A D | array_map.rs | 70 if attr.value_size == 0 || attr.max_entries == 0 || attr.key_size != 4 { in new() 237 if attr.key_size != 4 || attr.value_size != 4 || attr.max_entries != num_cpus { in new()
|
H A D | hash_map.rs | 33 _key_size: attr.key_size, in new()
|
/DragonOS/kernel/src/bpf/helper/ |
H A D | mod.rs | 24 let key_size = map.key_size(); in raw_map_lookup_elem() localVariable 25 let key = core::slice::from_raw_parts(key as *const u8, key_size); in raw_map_lookup_elem() 125 let key_size = map.key_size(); in raw_map_update_elem() localVariable 128 let key = core::slice::from_raw_parts(key as *const u8, key_size); in raw_map_update_elem() 149 let key_size = map.key_size(); in raw_map_delete_elem() localVariable 150 let key = core::slice::from_raw_parts(key as *const u8, key_size); in raw_map_delete_elem() 217 let key_size = map.key_size(); in raw_map_lookup_percpu_elem() localVariable 218 let key = core::slice::from_raw_parts(key as *const u8, key_size); in raw_map_lookup_percpu_elem()
|
/DragonOS/kernel/src/include/bindings/ |
H A D | linux_bpf.rs | 512 pub key_size: __u32, field 1041 pub key_size: __u32, field
|