cgroups: add monitor_full_path member

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-09-10 15:51:38 +02:00
parent d39e9d8b04
commit e09b62f943
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D
3 changed files with 6 additions and 0 deletions

View File

@ -820,6 +820,7 @@ static struct hierarchy *add_hierarchy(struct hierarchy ***h, char **clist, char
new->mountpoint = mountpoint;
new->container_base_path = container_base_path;
new->container_full_path = NULL;
new->monitor_full_path = NULL;
new->version = type;
newentry = append_null_to_list((void ***)h);

View File

@ -88,6 +88,7 @@ void cgroup_exit(struct cgroup_ops *ops)
free((*it)->mountpoint);
free((*it)->container_base_path);
free((*it)->container_full_path);
free((*it)->monitor_full_path);
free(*it);
}
free(ops->hierarchies);

View File

@ -65,6 +65,9 @@ typedef enum {
* @container_full_path
* - The full path to the containers cgroup.
*
* @monitor_full_path
* - The full path to the monitor's cgroup.
*
* @version
* - legacy hierarchy
* If the hierarchy is a legacy hierarchy this will be set to
@ -78,6 +81,7 @@ struct hierarchy {
char *mountpoint;
char *container_base_path;
char *container_full_path;
char *monitor_full_path;
int version;
};