Add a BPF_MAP_TYPE_CGROUP_ARRAY and its bpf_map_ops's implementations. To update an element, the caller is expected to obtain a cgroup2 backed fd by open(cgroup2_dir) and then update the array with that fd.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -84,6 +84,7 @@ enum bpf_map_type { · 83 unmodified lines | ||
| 84 | 84 | BPF_MAP_TYPE_PERCPU_HASH, |
| 85 | 85 | BPF_MAP_TYPE_PERCPU_ARRAY, |
| 86 | 86 | BPF_MAP_TYPE_STACK_TRACE, |
| 87 | + BPF_MAP_TYPE_CGROUP_ARRAY, | |
| 87 | 88 | }; |
| 88 | 89 | |
| 89 | 90 | enum bpf_prog_type { |