From 5a62e5e2ac564dfa5bfc53ad378985ddc3a7a9d7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Nov 2018 00:49:31 +0100 Subject: [PATCH] cgroup: document what the various masks variables are used for --- src/core/unit.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/unit.h b/src/core/unit.h index 15cd02e23a9..180f852a25f 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -247,11 +247,11 @@ typedef struct Unit { /* Counterparts in the cgroup filesystem */ char *cgroup_path; - CGroupMask cgroup_realized_mask; - CGroupMask cgroup_enabled_mask; - CGroupMask cgroup_invalidated_mask; + CGroupMask cgroup_realized_mask; /* In which hierarchies does this unit's cgroup exist? (only relevant on cgroupsv1) */ + CGroupMask cgroup_enabled_mask; /* Which controllers are enabled (or more correctly: enabled for the children) for this unit's cgroup? (only relevant on cgroupsv2) */ + CGroupMask cgroup_invalidated_mask; /* A mask specifiying controllers which shall be considered invalidated, and require re-realization */ CGroupMask cgroup_subtree_mask; - CGroupMask cgroup_members_mask; + CGroupMask cgroup_members_mask; /* A cache for the controllers required by all children of this cgroup (only relevant for slice units) */ int cgroup_inotify_wd; /* Device Controller BPF program */