Searched refs:the_map (Results 1 – 1 of 1) sorted by relevance
/system/bpf/progs/include/ |
D | bpf_helpers.h | 105 #define DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, usr, grp, md) \ argument 106 const struct bpf_map_def SEC("maps") the_map = { \ 121 static inline __always_inline __unused TypeOfValue* bpf_##the_map##_lookup_elem( \ 123 return bpf_map_lookup_elem_unsafe(&the_map, k); \ 126 static inline __always_inline __unused int bpf_##the_map##_update_elem( \ 128 return bpf_map_update_elem_unsafe(&the_map, k, v, flags); \ 131 static inline __always_inline __unused int bpf_##the_map##_delete_elem(const TypeOfKey* k) { \ 132 return bpf_map_delete_elem_unsafe(&the_map, k); \ 135 #define DEFINE_BPF_MAP(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument 136 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, AID_ROOT, 0600) [all …]
|