chiark / gitweb /
main: print warning if /usr is on a seperate partition
[elogind.git] / src / cgroup.h
index e38d7e79e6f3283702c67266b3ae87a4ce4c0987..89854ff34ee0088a1ae3038fa437ee833a314e0a 100644 (file)
@@ -39,11 +39,12 @@ struct CGroupBonding {
         /* For the Manager::cgroup_bondings hashmap */
         LIST_FIELDS(CGroupBonding, by_path);
 
-        /* When shutting down, remove cgroup? */
-        bool clean_up:1;
+        /* When shutting down, remove cgroup? Are our own tasks the
+         * only ones in this group?*/
+        bool ours:1;
 
-        /* When our tasks are the only ones in this group */
-        bool only_us:1;
+        /* If we cannot create this group, or add a process to it, is this fatal? */
+        bool essential:1;
 
         /* This cgroup is realized */
         bool realized:1;
@@ -71,6 +72,9 @@ CGroupBonding *cgroup_bonding_find_list(CGroupBonding *first, const char *contro
 
 char *cgroup_bonding_to_string(CGroupBonding *b);
 
+pid_t cgroup_bonding_search_main_pid(CGroupBonding *b);
+pid_t cgroup_bonding_search_main_pid_list(CGroupBonding *b);
+
 #include "manager.h"
 
 int manager_setup_cgroup(Manager *m);