Lines Matching refs:mnt_dir
69 struct cgroup_dir mnt_dir; member
357 const char *const mnt_dir, in cgroup_root_scan() argument
367 const int mnt_dfd = SAFE_OPEN(mnt_dir, O_PATH | O_DIRECTORY); in cgroup_root_scan()
411 "Check '%s' and '%s'", root->mnt_path, mnt_dir); in cgroup_root_scan()
423 strcpy(root->mnt_path, mnt_dir); in cgroup_root_scan()
424 root->mnt_dir.dir_root = root; in cgroup_root_scan()
425 root->mnt_dir.dir_name = root->mnt_path; in cgroup_root_scan()
426 root->mnt_dir.dir_fd = mnt_dfd; in cgroup_root_scan()
461 cgroup_root_scan(mnt->mnt_type, mnt->mnt_dir, mnt->mnt_opts); in tst_cgroup_scan()
472 roots[0].mnt_dir.we_created_it = 1; in cgroup_mount_v2()
499 if (roots[0].mnt_dir.we_created_it) { in cgroup_mount_v2()
500 roots[0].mnt_dir.we_created_it = 0; in cgroup_mount_v2()
547 ctrl->ctrl_root->mnt_dir.we_created_it = made_dir; in cgroup_mount_v1()
550 SAFE_FILE_PRINTFAT(ctrl->ctrl_root->mnt_dir.dir_fd, in cgroup_mount_v1()
565 SAFE_FILE_READAT(root->mnt_dir.dir_fd, in cgroup_copy_cpuset()
644 add_ctrl(&root->mnt_dir.ctrl_field, ctrl); in tst_cgroup_require()
648 SAFE_FILE_PRINTFAT(root->mnt_dir.dir_fd, in tst_cgroup_require()
651 tst_file_printfat(root->mnt_dir.dir_fd, in tst_cgroup_require()
657 cgroup_dir_mk(&root->mnt_dir, cgroup_ltp_dir, &root->ltp_dir); in tst_cgroup_require()
659 root->ltp_dir.ctrl_field |= root->mnt_dir.ctrl_field; in tst_cgroup_require()
715 if (root->mnt_dir.dir_fd > 0) in close_path_fds()
716 SAFE_CLOSE(root->mnt_dir.dir_fd); in close_path_fds()
776 root->drain_dir.dir_fd, root->mnt_dir.dir_fd); in tst_cgroup_cleanup()
784 SAFE_UNLINKAT(root->mnt_dir.dir_fd, in tst_cgroup_cleanup()
793 SAFE_FILE_PRINTFAT(ctrl->ctrl_root->mnt_dir.dir_fd, in tst_cgroup_cleanup()