Home
last modified time | relevance | path

Searched defs:BpfMap (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/bpf/helper/
H A Dmod.rs23 let map = Arc::from_raw(map as *const BpfMap); in raw_map_lookup_elem() constant
36 pub fn map_lookup_elem(map: &Arc<BpfMap>, key: &[u8]) -> Result<Option<*const u8>> { in map_lookup_elem()
56 let map = Arc::from_raw(map as *const BpfMap); in raw_perf_event_output() constant
69 map: &Arc<BpfMap>, in perf_event_output()
124 let map = Arc::from_raw(map as *const BpfMap); in raw_map_update_elem() constant
138 pub fn map_update_elem(map: &Arc<BpfMap>, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in map_update_elem()
148 let map = Arc::from_raw(map as *const BpfMap); in raw_map_delete_elem() constant
159 pub fn map_delete_elem(map: &Arc<BpfMap>, key: &[u8]) -> Result<()> { in map_delete_elem()
187 let map = Arc::from_raw(map as *const BpfMap); in raw_map_for_each_elem() constant
198 map: &Arc<BpfMap>, in map_for_each_elem()
[all …]
/DragonOS/kernel/src/bpf/map/
H A Dmod.rs30 pub struct BpfMap { struct
31 inner_map: SpinLock<Box<dyn BpfMapCommonOps>>, argument
32 meta: BpfMapMeta, argument
112 impl BpfMap { impl
134 impl IndexNode for BpfMap { implementation
405 fn get_map_file(fd: i32) -> Result<Arc<BpfMap>> { in get_map_file()
/DragonOS/kernel/src/bpf/prog/
H A Dmod.rs104 let file = Arc::from_raw(*ptr as *const u8 as *const BpfMap); in drop() constant