blob: afafc87e920147e1a039e05dd5662c37f76778e3 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __CGROUP_H__
3#define __CGROUP_H__
4
5#include <linux/refcount.h>
6
7struct option;
8
9struct cgroup_sel {
10 char *name;
11 int fd;
12 refcount_t refcnt;
13};
14
15
16extern int nr_cgroups; /* number of explicit cgroups defined */
17void close_cgroup(struct cgroup_sel *cgrp);
18int parse_cgroups(const struct option *opt, const char *str, int unset);
19
20#endif /* __CGROUP_H__ */