Lines Matching refs:mnt
25 struct mntent *mnt, dummy; in find_cgroup_mnt() local
35 while ((mnt = getmntent_r(f, &dummy, buf, sizeof(buf))) != NULL) { in find_cgroup_mnt()
36 if (!strcmp(mnt->mnt_type, "cgroup") && in find_cgroup_mnt()
37 strstr(mnt->mnt_opts, "blkio")) in find_cgroup_mnt()
41 if (mnt) in find_cgroup_mnt()
42 mntpoint = smalloc_strdup(mnt->mnt_dir); in find_cgroup_mnt()
100 static char *get_cgroup_root(struct thread_data *td, char *mnt) in get_cgroup_root() argument
105 sprintf(str, "%s%s%s", mnt, FIO_OS_PATH_SEPARATOR, td->o.cgroup); in get_cgroup_root()
107 sprintf(str, "%s%s%s", mnt, FIO_OS_PATH_SEPARATOR, td->o.name); in get_cgroup_root()
142 static int cgroup_del_pid(struct thread_data *td, char *mnt) in cgroup_del_pid() argument
144 return cgroup_write_pid(td, mnt); in cgroup_del_pid()
147 int cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt) in cgroup_setup() argument
151 if (!*mnt) { in cgroup_setup()
152 *mnt = find_cgroup_mnt(td); in cgroup_setup()
153 if (!*mnt) in cgroup_setup()
160 root = get_cgroup_root(td, *mnt); in cgroup_setup()
189 void cgroup_shutdown(struct thread_data *td, char **mnt) in cgroup_shutdown() argument
191 if (*mnt == NULL) in cgroup_shutdown()
196 cgroup_del_pid(td, *mnt); in cgroup_shutdown()