The eBPF helper functions define bpf_get_current_cgroup_id for eBPF programs, which does the obvious thing
u64 bpf_get_current_cgroup_id(void)
Return A 64-bit integer containing the current cgroup id
based on the cgroup within which the current task
is running.
However I can't find an equivalent system call (something similar to getpid) that I can use in a regular old C program
Am I just completely missing the relevant function? Or does userspace need to do something different to get the cgroup ID for the current task?