Lines Matching refs:the_map
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)
138 #define DEFINE_BPF_MAP_GWO(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, gid) \ argument
139 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, gid, 0620)
141 #define DEFINE_BPF_MAP_GRO(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, gid) \ argument
142 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, gid, 0640)
144 #define DEFINE_BPF_MAP_GRW(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, gid) \ argument
145 DEFINE_BPF_MAP_UGM(the_map, TYPE, TypeOfKey, TypeOfValue, num_entries, AID_ROOT, gid, 0660)