Loading...
1#ifndef __CGROUP_H__
2#define __CGROUP_H__
3
4struct option;
5
6struct cgroup_sel {
7 char *name;
8 int fd;
9 int refcnt;
10};
11
12
13extern int nr_cgroups; /* number of explicit cgroups defined */
14extern void close_cgroup(struct cgroup_sel *cgrp);
15extern int parse_cgroups(const struct option *opt, const char *str, int unset);
16
17#endif /* __CGROUP_H__ */
1#ifndef __CGROUP_H__
2#define __CGROUP_H__
3
4#include <linux/atomic.h>
5
6struct option;
7
8struct cgroup_sel {
9 char *name;
10 int fd;
11 atomic_t refcnt;
12};
13
14
15extern int nr_cgroups; /* number of explicit cgroups defined */
16void close_cgroup(struct cgroup_sel *cgrp);
17int parse_cgroups(const struct option *opt, const char *str, int unset);
18
19#endif /* __CGROUP_H__ */