]> Git Repo - linux.git/commit
cgroup: bpf: Add BPF_MAP_TYPE_CGROUP_ARRAY
authorMartin KaFai Lau <[email protected]>
Thu, 30 Jun 2016 17:28:43 +0000 (10:28 -0700)
committerDavid S. Miller <[email protected]>
Fri, 1 Jul 2016 20:30:38 +0000 (16:30 -0400)
commit4ed8ec521ed57c4e207ad464ca0388776de74d4b
treef656cf08ee272920b26cad8a91ae8d315242b5cd
parent1f3fe7ebf6136c341012db9f554d4caa566fcbaa
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.

Signed-off-by: Martin KaFai Lau <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Tejun Heo <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/uapi/linux/bpf.h
kernel/bpf/arraymap.c
kernel/bpf/syscall.c
kernel/bpf/verifier.c
This page took 0.051289 seconds and 4 git commands to generate.