blob: 31f8dcdbd7efefac48353b90715c027cf2c13386 [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 */
Arnaldo Carvalho de Melo3938bad2016-03-23 15:06:35 -030016void close_cgroup(struct cgroup_sel *cgrp);
17int parse_cgroups(const struct option *opt, const char *str, int unset);
Stephane Eranian023695d2011-02-14 11:20:01 +020018
19#endif /* __CGROUP_H__ */