Lines Matching refs:cgroup_path
635 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() local
641 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_pid_cgroup()
648 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
649 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
655 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
656 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup()
659 snprintf(cgroup_procs, MAX_PATH, "%s/cgroup.procs", cgroup_path); in set_pid_cgroup()
693 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup() local
706 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_comm_cgroup()
713 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
714 sizeof(cgroup_path) - strlen(cgroup_path)); in set_comm_cgroup()
720 snprintf(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup()
721 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_comm_cgroup()
724 snprintf(cgroup_procs, MAX_PATH, "%s/cgroup.procs", cgroup_path); in set_comm_cgroup()