Lines Matching refs:dir_fd
46 int dir_fd; member
372 if (!mkdirat(parent->dir_fd, dir_name, 0777)) { in cgroup_dir_mk()
380 dpath = tst_decode_fd(parent->dir_fd); in cgroup_dir_mk()
392 parent->dir_fd, dpath, dir_name); in cgroup_dir_mk()
396 new->dir_fd = SAFE_OPENAT(parent->dir_fd, dir_name, in cgroup_dir_mk()
615 root->mnt_dir.dir_fd = mnt_dfd; in cgroup_root_scan()
756 SAFE_FILE_PRINTFAT(ctrl->ctrl_root->mnt_dir.dir_fd, in cgroup_mount_v1()
771 SAFE_FILE_READAT(root->mnt_dir.dir_fd, in cgroup_copy_cpuset()
773 SAFE_FILE_PRINTFAT(root->ltp_dir.dir_fd, in cgroup_copy_cpuset()
870 SAFE_FILE_PRINTFAT(root->mnt_dir.dir_fd, in tst_cg_require()
873 tst_file_printfat(root->mnt_dir.dir_fd, in tst_cg_require()
878 if (!root->ltp_dir.dir_fd) in tst_cg_require()
885 SAFE_FILE_PRINTFAT(root->ltp_dir.dir_fd, in tst_cg_require()
888 SAFE_FILE_PRINTFAT(root->ltp_dir.dir_fd, in tst_cg_require()
937 if (root->test_dir.dir_fd > 0) in close_path_fds()
938 SAFE_CLOSE(root->test_dir.dir_fd); in close_path_fds()
939 if (root->ltp_dir.dir_fd > 0) in close_path_fds()
940 SAFE_CLOSE(root->ltp_dir.dir_fd); in close_path_fds()
941 if (root->drain_dir.dir_fd > 0) in close_path_fds()
942 SAFE_CLOSE(root->drain_dir.dir_fd); in close_path_fds()
943 if (root->mnt_dir.dir_fd > 0) in close_path_fds()
944 SAFE_CLOSE(root->mnt_dir.dir_fd); in close_path_fds()
994 root->test_dir.dir_fd, root->drain_dir.dir_fd); in tst_cg_cleanup()
995 SAFE_UNLINKAT(root->ltp_dir.dir_fd, root->test_dir.dir_name, in tst_cg_cleanup()
1004 root->drain_dir.dir_fd, root->mnt_dir.dir_fd); in tst_cg_cleanup()
1007 SAFE_UNLINKAT(root->ltp_dir.dir_fd, in tst_cg_cleanup()
1012 SAFE_UNLINKAT(root->mnt_dir.dir_fd, in tst_cg_cleanup()
1022 SAFE_FILE_PRINTFAT(ctrl->ctrl_root->mnt_dir.dir_fd, in tst_cg_cleanup()
1121 return cg->dirs_by_ctrl[0]->dir_fd; in tst_cg_group_unified_dir_fd()
1131 close((*dir)->dir_fd); in tst_cg_group_rm()
1132 SAFE_UNLINKAT((*dir)->dir_parent->dir_fd, in tst_cg_group_rm()
1252 if (!faccessat((*dir)->dir_fd, alias, F_OK, 0)) in safe_cg_has()
1260 (*dir)->dir_fd, tst_decode_fd((*dir)->dir_fd), alias); in safe_cg_has()
1321 (*dir)->dir_fd, alias, out, len); in safe_cg_read()
1358 (*dir)->dir_fd, alias, fmt, va); in safe_cg_printf()
1378 fds[i++] = safe_openat(file, lineno, (*dir)->dir_fd, alias, flags); in safe_cg_open()
1399 safe_fchownat(file, lineno, (*dir)->dir_fd, alias, owner, group, 0); in safe_cg_fchown()