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 */ |
| 16 | extern void close_cgroup(struct cgroup_sel *cgrp); |
| 17 | extern int parse_cgroups(const struct option *opt, const char *str, int unset); |
| 18 | |
| 19 | #endif /* __CGROUP_H__ */ |