Move cg_version_t to libcgroup/groups.h from libcgroup-internal.h.
Introduce CGROUP_DISK version to indicate the cgroup version in
sysfs.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
extern "C" {
#endif
+enum cg_version_t {
+ CGROUP_UNK = 0,
+ CGROUP_V1,
+ CGROUP_V2,
+ CGROUP_DISK = 0xFF,
+};
+
/**
* Flags for cgroup_delete_cgroup_ext().
*/
struct cg_mount_point *next;
};
-enum cg_version_t {
- CGROUP_UNK = 0,
- CGROUP_V1,
- CGROUP_V2,
-};
-
struct cg_mount_table_s {
/** Controller name. */
char name[FILENAME_MAX];