Add support for blkio cgroups on Linux
[fio.git] / cgroup.h
1 #ifndef FIO_CGROUP_H
2 #define FIO_CGROUP_H
3
4 #ifdef FIO_HAVE_CGROUPS
5
6 int cgroup_setup(struct thread_data *td);
7 void cgroup_shutdown(struct thread_data *td);
8
9 #else
10
11 static inline int cgroup_setup(struct thread_data *td)
12 {
13         td_verror(td, EINVAL, "cgroup_setup");
14         return 1;
15 }
16
17 static inline void cgroup_shutdown(struct thread_data *td)
18 {
19 }
20
21 #endif
22 #endif