Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/bpf/map/
H A Dlru.rs52 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
58 let res = cb(key, value, ctx); in for_each_elem()
133 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
134 self.per_cpu_maps.get_mut().for_each_elem(cb, ctx, flags) in for_each_elem()
H A Dhash_map.rs54 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
60 let res = cb(key, value, ctx); in for_each_elem()
135 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
136 self.per_cpu_maps.get_mut().for_each_elem(cb, ctx, flags) in for_each_elem()
H A Darray_map.rs113 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
122 let res = cb(&key, value, ctx); in for_each_elem()
199 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
200 self.per_cpu_data.get_mut().for_each_elem(cb, ctx, flags) in for_each_elem()
263 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, _flags: u64) -> Result<u32> { in for_each_elem()
270 let res = cb(&key, value, ctx); in for_each_elem()
/DragonOS/kernel/src/bpf/helper/
H A Dmod.rs183 cb: *const c_void, in raw_map_for_each_elem()
188 let cb = *core::mem::transmute::<*const c_void, *const BpfCallBackFn>(cb); in raw_map_for_each_elem() localVariable
189 let res = map_for_each_elem(&map, cb, ctx as _, flags); in raw_map_for_each_elem()
199 cb: BpfCallBackFn, in map_for_each_elem()
204 let value = binding.for_each_elem(cb, ctx, flags); in map_for_each_elem()