blob: b4b8cb42fe5e04b7458fe3b57f764b0bda6c18db [file] [log] [blame]
Stephane Eranian023695d2011-02-14 11:20:01 +02001#ifndef __CGROUP_H__
2#define __CGROUP_H__
3
Arnaldo Carvalho de Melof812d302015-05-15 16:12:20 -03004#include <linux/atomic.h>
5
Stephane Eranian023695d2011-02-14 11:20:01 +02006struct option;
7
8struct cgroup_sel {
9 char *name;
10 int fd;
Arnaldo Carvalho de Melof812d302015-05-15 16:12:20 -030011 atomic_t refcnt;
Stephane Eranian023695d2011-02-14 11:20:01 +020012};
13
14
15extern int nr_cgroups; /* number of explicit cgroups defined */
16extern void close_cgroup(struct cgroup_sel *cgrp);
17extern int parse_cgroups(const struct option *opt, const char *str, int unset);
18
19#endif /* __CGROUP_H__ */