Searched refs:the_map (Results 1 – 1 of 1) sorted by relevance
/frameworks/libs/net/common/native/bpf_headers/include/bpf/ |
D | bpf_helpers.h | 140 #define DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md, \ argument 142 const struct bpf_map_def SECTION("maps") the_map = { \ 159 BPF_ANNOTATE_KV_PAIR(the_map, KeyType, ValueType); \ 161 static inline __always_inline __unused ValueType* bpf_##the_map##_lookup_elem( \ 163 return bpf_map_lookup_elem_unsafe(&the_map, k); \ 166 static inline __always_inline __unused int bpf_##the_map##_update_elem( \ 168 return bpf_map_update_elem_unsafe(&the_map, k, v, flags); \ 171 static inline __always_inline __unused int bpf_##the_map##_delete_elem(const KeyType* k) { \ 172 return bpf_map_delete_elem_unsafe(&the_map, k); \ 175 #define DEFINE_BPF_MAP_UGM(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md) \ argument [all …]
|