Linux Audio

Check our new training course

Loading...
v5.4
 1/* 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 {
10	char *name;
11	int fd;
12	refcount_t refcnt;
13};
14
15
16extern int nr_cgroups; /* number of explicit cgroups defined */
17
18struct cgroup *cgroup__get(struct cgroup *cgroup);
19void cgroup__put(struct cgroup *cgroup);
20
21struct evlist;
22
23struct cgroup *evlist__findnew_cgroup(struct evlist *evlist, const char *name);
24
25void evlist__set_default_cgroup(struct evlist *evlist, struct cgroup *cgroup);
26
27int parse_cgroups(const struct option *opt, const char *str, int unset);
28
29#endif /* __CGROUP_H__ */
v3.5.6
 
 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__ */