diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-08-20 00:20:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-08-20 00:22:02 +0200 |
commit | ab1f063390f55e14a8de87f21c4fad199eb908a6 (patch) | |
tree | f99b7dd16628be2c3ebbee678820de0a268392dc /src/unit.h | |
parent | 5ed27dbdbfe866810a52ff8225bcf61590861823 (diff) |
exec: optionally apply cgroup attributes to the cgroups we create
Diffstat (limited to 'src/unit.h')
-rw-r--r-- | src/unit.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |