cgroup-util: add cg_is_delegated helper

Take is_delegated from cgroup-show.c, and make it a generic helper
function. This new helper will be used again in a later commit.
This commit is contained in:
Nick Rosbrook
2023-10-13 15:13:11 -04:00
parent 5897469a08
commit b426b4eed8
3 changed files with 25 additions and 28 deletions
+2
View File
@@ -210,6 +210,8 @@ int cg_rmdir(const char *controller, const char *path);
int cg_is_threaded(const char *path);
int cg_is_delegated(const char *path);
typedef enum {
CG_KEY_MODE_GRACEFUL = 1 << 0,
} CGroupKeyMode;