@@ -36,6 +36,7 @@ struct seq_file;
#define MAX_CGROUP_TYPE_NAMELEN 32
#define MAX_CGROUP_ROOT_NAMELEN 64
#define MAX_CFTYPE_NAME 64
+#define MAX_OWNER_NAME 64
/* define the enumeration of all cgroup subsystems */
#define SUBSYS(_x) _x ## _cgrp_id,
@@ -505,6 +506,7 @@ struct cftype {
* end of cftype array.
*/
char name[MAX_CFTYPE_NAME];
+ char owner_name[MAX_OWNER_NAME];
unsigned long private;
/*
@@ -291,6 +291,19 @@ void css_task_iter_end(struct css_task_iter *it);
; \
else
+/**
+ * list_for_each_cft - walk circular list of cftypes linked together
+ * @cft: cftype from where to start
+ * @n: cftype used as a temporary storage
+ *
+ * A cftype pointed by a file may be part of a circular list of cftypes, this
+ * macro walks the circular list starting from any given cftype. Unlike the
+ * "list_for_each_entry" macro, the first element is included in the iteration.
+ */
+#define list_for_each_cft(cft, n) \
+ for (n = NULL; cft != n; n = (n == NULL) ? cft : n, \
+ cft = list_next_entry(cft, share_node))
+
/*
* Inline functions.
*/