From ab1f063390f55e14a8de87f21c4fad199eb908a6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 20 Aug 2011 00:20:41 +0200 Subject: exec: optionally apply cgroup attributes to the cgroups we create --- src/unit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/unit.h') diff --git a/src/unit.h b/src/unit.h index 3c99817390..7da572350e 100644 --- a/src/unit.h +++ b/src/unit.h @@ -130,6 +130,7 @@ enum UnitDependency { #include "manager.h" #include "job.h" #include "cgroup.h" +#include "cgroup-attr.h" struct Meta { Manager *manager; @@ -167,6 +168,7 @@ struct Meta { /* Counterparts in the cgroup filesystem */ CGroupBonding *cgroup_bondings; + CGroupAttribute *cgroup_attributes; /* Per type list */ LIST_FIELDS(Meta, units_by_type); @@ -432,6 +434,7 @@ int unit_add_cgroup(Unit *u, CGroupBonding *b); int unit_add_cgroup_from_text(Unit *u, const char *name); int unit_add_default_cgroups(Unit *u); CGroupBonding* unit_get_default_cgroup(Unit *u); +int unit_add_cgroup_attribute(Unit *u, const char *controller, const char *name, const char *value, CGroupAttributeMapCallback map_callback); int unit_choose_id(Unit *u, const char *name); int unit_set_description(Unit *u, const char *description); -- cgit v1.2.3-54-g00ecf