Home
last modified time | relevance | path

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

/DragonOS/kernel/src/bpf/helper/
H A Dmod.rs5 use crate::bpf::map::{BpfCallBackFn, BpfMap};
23 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() argument
56 let map = Arc::from_raw(map as *const BpfMap); in raw_perf_event_output() constant
69 map: &Arc<BpfMap>, in perf_event_output() argument
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() argument
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() argument
187 let map = Arc::from_raw(map as *const BpfMap); in raw_map_for_each_elem() constant
[all …]
/DragonOS/kernel/src/bpf/prog/
H A Dverifier.rs2 use crate::bpf::map::BpfMap;
63 .downcast_arc::<BpfMap>() in relocation()
82 .downcast_arc::<BpfMap>() in relocation()
H A Dmod.rs5 use crate::bpf::map::BpfMap;
104 let file = Arc::from_raw(*ptr as *const u8 as *const BpfMap); in drop() constant
/DragonOS/kernel/src/bpf/map/
H A Dmod.rs30 pub struct BpfMap { struct
112 impl BpfMap { impl
115 BpfMap { in new()
134 impl IndexNode for BpfMap { implementation
243 let bpf_map = BpfMap::new(map, map_meta); in bpf_map_create()
405 fn get_map_file(fd: i32) -> Result<Arc<BpfMap>> { in get_map_file() argument
413 .downcast_arc::<BpfMap>() in get_map_file()