Lines Matching refs:bpf_cmd
4 use crate::include::bindings::linux_bpf::{bpf_attr, bpf_cmd};
17 let cmd = bpf_cmd::from_u32(cmd).ok_or(SystemError::EINVAL)?; in sys_bpf()
22 pub fn bpf(cmd: bpf_cmd, attr: &bpf_attr) -> Result<usize> { in bpf() argument
25 bpf_cmd::BPF_MAP_CREATE => map::bpf_map_create(attr), in bpf()
26 bpf_cmd::BPF_MAP_UPDATE_ELEM => map::bpf_map_update_elem(attr), in bpf()
27 bpf_cmd::BPF_MAP_LOOKUP_ELEM => map::bpf_lookup_elem(attr), in bpf()
28 bpf_cmd::BPF_MAP_GET_NEXT_KEY => map::bpf_map_get_next_key(attr), in bpf()
29 bpf_cmd::BPF_MAP_DELETE_ELEM => map::bpf_map_delete_elem(attr), in bpf()
30 bpf_cmd::BPF_MAP_LOOKUP_AND_DELETE_ELEM => map::bpf_map_lookup_and_delete_elem(attr), in bpf()
31 bpf_cmd::BPF_MAP_LOOKUP_BATCH => map::bpf_map_lookup_batch(attr), in bpf()
32 bpf_cmd::BPF_MAP_FREEZE => map::bpf_map_freeze(attr), in bpf()
34 bpf_cmd::BPF_PROG_LOAD => prog::bpf_prog_load(attr), in bpf()
36 bpf_cmd::BPF_BTF_LOAD => { in bpf()