fio: add minimal gui program
[fio.git] / cgroup.h
CommitLineData
a696fa2a
JA
1#ifndef FIO_CGROUP_H
2#define FIO_CGROUP_H
3
4#ifdef FIO_HAVE_CGROUPS
5
6adb38a1
JA
6int cgroup_setup(struct thread_data *, struct flist_head *, char **);
7void cgroup_shutdown(struct thread_data *, char **);
a696fa2a 8
dae5341c 9void cgroup_kill(struct flist_head *list);
39f22027 10
a696fa2a
JA
11#else
12
6adb38a1
JA
13static inline int cgroup_setup(struct thread_data *td, struct flist_head *list,
14 char **mnt)
a696fa2a
JA
15{
16 td_verror(td, EINVAL, "cgroup_setup");
17 return 1;
18}
19
6adb38a1 20static inline void cgroup_shutdown(struct thread_data *td, char **mnt)
a696fa2a
JA
21{
22}
23
8c436560 24static inline void cgroup_kill(struct flist_head *list)
39f22027
JA
25{
26}
27
a696fa2a
JA
28#endif
29#endif