Stephane Eranian | 023695d | 2011-02-14 11:20:01 +0200 | [diff] [blame] | 1 | #ifndef __CGROUP_H__ |
| 2 | #define __CGROUP_H__ |
| 3 | |
Arnaldo Carvalho de Melo | f812d30 | 2015-05-15 16:12:20 -0300 | [diff] [blame] | 4 | #include <linux/atomic.h> |
| 5 | |
Stephane Eranian | 023695d | 2011-02-14 11:20:01 +0200 | [diff] [blame] | 6 | struct option; |
| 7 | |
| 8 | struct cgroup_sel { |
| 9 | char *name; |
| 10 | int fd; |
Arnaldo Carvalho de Melo | f812d30 | 2015-05-15 16:12:20 -0300 | [diff] [blame] | 11 | atomic_t refcnt; |
Stephane Eranian | 023695d | 2011-02-14 11:20:01 +0200 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | |
| 15 | extern int nr_cgroups; /* number of explicit cgroups defined */ |
Arnaldo Carvalho de Melo | 3938bad | 2016-03-23 15:06:35 -0300 | [diff] [blame] | 16 | void close_cgroup(struct cgroup_sel *cgrp); |
| 17 | int parse_cgroups(const struct option *opt, const char *str, int unset); |
Stephane Eranian | 023695d | 2011-02-14 11:20:01 +0200 | [diff] [blame] | 18 | |
| 19 | #endif /* __CGROUP_H__ */ |