Re: [PATCH -next 1/4] cgroup: Add cgroup_get_from_fd

2016-06-22 Thread Tejun Heo
Hello, Martin. On Tue, Jun 21, 2016 at 05:23:19PM -0700, Martin KaFai Lau wrote: > @@ -6205,6 +6206,31 @@ struct cgroup *cgroup_get_from_path(const char *path) > } > EXPORT_SYMBOL_GPL(cgroup_get_from_path); Proper function comment would be nice. > +struct cgroup *cgroup_get_from_fd(int fd) >

[PATCH -next 1/4] cgroup: Add cgroup_get_from_fd

2016-06-21 Thread Martin KaFai Lau
Add a helper function to get a cgroup2 from a fd. It will be stored in a bpf array (BPF_MAP_TYPE_CGROUP_ARRAY) which will be introduced in the later patch. Signed-off-by: Martin KaFai Lau Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Tejun Heo