Fix __FIO_OPT_G_ISCSI numbering
[fio.git] / cgroup.h
CommitLineData
a696fa2a
JA
1#ifndef FIO_CGROUP_H
2#define FIO_CGROUP_H
3
4#ifdef FIO_HAVE_CGROUPS
5
c3dc516a
JB
6struct cgroup_mnt {
7 char *path;
8 bool cgroup2;
9};
10
11int cgroup_setup(struct thread_data *, struct flist_head *, struct cgroup_mnt **);
12void cgroup_shutdown(struct thread_data *, struct cgroup_mnt *);
a696fa2a 13
dae5341c 14void cgroup_kill(struct flist_head *list);
39f22027 15
a696fa2a
JA
16#else
17
c3dc516a
JB
18struct cgroup_mnt;
19
6adb38a1 20static inline int cgroup_setup(struct thread_data *td, struct flist_head *list,
354d50e7 21 struct cgroup_mnt **mnt)
a696fa2a
JA
22{
23 td_verror(td, EINVAL, "cgroup_setup");
24 return 1;
25}
26
c3dc516a 27static inline void cgroup_shutdown(struct thread_data *td, struct cgroup_mnt *mnt)
a696fa2a
JA
28{
29}
30
8c436560 31static inline void cgroup_kill(struct flist_head *list)
39f22027
JA
32{
33}
34
a696fa2a
JA
35#endif
36#endif