diff options
| author | Sargun Dhillon <sargun@sargun.me> | 2016-08-12 08:56:40 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:51:48 +0300 |
| commit | 8ef7935342ee10dde5f5b1f088d968cc77efbb72 (patch) | |
| tree | f91c8e9c8ea76c90bc9654c07ccc71cc11639c3f /net/core/dev.c | |
| parent | 69a91e6165ee0ca366c52c7a3543fbcb1c17c45c (diff) | |
cgroup: Add task_under_cgroup_hierarchy cgroup inline function to headers
This commit adds an inline function to cgroup.h to check whether a given
task is under a given cgroup hierarchy. This is to avoid having to put
ifdefs in .c files to gate access to cgroups. When cgroups are disabled
this always returns true.
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Tejun Heo <tj@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions
