X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fcgroup-util.h;h=7f11bc6f83d686c1cb60371d89926ab19b39379f;hp=cc0ce54521fe834dc30cce08014f4d12b941f73d;hb=ba1261bc02693ac8a7712ade14aab8e22989ba88;hpb=3474ae3c7e1981301d0b35bc89d759ca13f06e8f diff --git a/src/shared/cgroup-util.h b/src/shared/cgroup-util.h index cc0ce5452..7f11bc6f8 100644 --- a/src/shared/cgroup-util.h +++ b/src/shared/cgroup-util.h @@ -69,5 +69,9 @@ int cg_is_empty(const char *controller, const char *path, bool ignore_self); int cg_is_empty_recursive(const char *controller, const char *path, bool ignore_self); int cg_get_user_path(char **path); +int cg_pid_get_cgroup(pid_t pid, char **root, char **cgroup); +int cg_pid_get_unit(pid_t pid, char **unit); + +char **cg_shorten_controllers(char **controllers); #endif