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