Skip to content
Commit 332ea1f6 authored by Tejun Heo's avatar Tejun Heo Committed by Alexei Starovoitov
Browse files

bpf: Add bpf_cgroup_from_id() kfunc



cgroup ID is an userspace-visible 64bit value uniquely identifying a given
cgroup. As the IDs are used widely, it's useful to be able to look up the
matching cgroups. Add bpf_cgroup_from_id().

v2: Separate out selftest into its own patch as suggested by Alexei.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/Y/bBaG96t0/gQl9/@slm.duckdns.org


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 746ce767
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment