Home
last modified time | relevance | path

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

/system/bpf/progs/include/
Dbpf_helpers.h65 #define DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, usr, grp, md) \ argument
66 const struct bpf_map_def SEC("maps") the_map = { \
76 static inline __always_inline __unused TypeOfValue* bpf_##the_map##_lookup_elem( \
78 return bpf_map_lookup_elem_unsafe(&the_map, k); \
81 static inline __always_inline __unused int bpf_##the_map##_update_elem( \
83 return bpf_map_update_elem_unsafe(&the_map, k, v, flags); \
86 static inline __always_inline __unused int bpf_##the_map##_delete_elem(const TypeOfKey* k) { \
87 return bpf_map_delete_elem_unsafe(&the_map, k); \
90 #define DEFINE_BPF_MAP(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries) \ argument
91 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, AID_ROOT, 0600)
[all …]