History

cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY

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.

Martin KaFai Lau committed 10 years ago

Commit 4ed8ec51 parent 1f3fe7e4 files · +48 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -84,6 +84,7 @@ enum bpf_map_type { · 83 unmodified lines
8484 BPF_MAP_TYPE_PERCPU_HASH,
8585 BPF_MAP_TYPE_PERCPU_ARRAY,
8686 BPF_MAP_TYPE_STACK_TRACE,
87+ BPF_MAP_TYPE_CGROUP_ARRAY,
8788 };
8889
8990 enum bpf_prog_type {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t