summaryrefslogtreecommitdiff
path: root/cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgroup.c')
-rw-r--r--cgroup.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cgroup.c b/cgroup.c
index 24bbe1aa15..f5c2592ce8 100644
--- a/cgroup.c
+++ b/cgroup.c
@@ -540,3 +540,14 @@ CGroupBonding *cgroup_bonding_find_list(CGroupBonding *first, const char *contro
return NULL;
}
+
+char *cgroup_bonding_to_string(CGroupBonding *b) {
+ char *r;
+
+ assert(b);
+
+ if (asprintf(&r, "%s:%s", b->controller, b->path) < 0)
+ return NULL;
+
+ return r;
+}