Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
758cf80e
Unverified
Commit
758cf80e
authored
Feb 17, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgfsng: fully document remaining variables
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
476619a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
16 deletions
+35
-16
cgfsng.c
src/lxc/cgroups/cgfsng.c
+35
-16
No files found.
src/lxc/cgroups/cgfsng.c
View file @
758cf80e
...
...
@@ -117,8 +117,8 @@ struct hierarchy {
* @name
* - The name of the container.
*
* @cgroup_layout
:
* - What cgroup layout the container is running with
* @cgroup_layout
* - What cgroup layout the container is running with
.
* - CGROUP_LAYOUT_UNKNOWN
* The cgroup layout could not be determined. This should be treated as an
* error condition.
...
...
@@ -142,30 +142,49 @@ struct cgfsng_handler_data {
cgroup_layout_t
cgroup_layout
;
};
/*
* @hierarchies - a NULL-terminated array of struct hierarchy, one per
* legacy hierarchy. No duplicates. First sufficient, writeable
* mounted hierarchy wins
/* @hierarchies
* - A NULL-terminated array of struct hierarchy, one per legacy hierarchy. No
* duplicates. First sufficient, writeable mounted hierarchy wins.
*/
struct
hierarchy
**
hierarchies
;
/* Pointer to the unified hierarchy in the null terminated list @hierarchies.
* This is merely a convenience for hybrid cgroup layouts to easily retrieve the
* unified hierarchy without iterating throught @hierarchies.
*/
struct
hierarchy
*
unified
;
cgroup_layout_t
cgroup_layout
;
/*
* @cgroup_use - a copy of the lxc.cgroup.use
* @cgroup_layout
* - What cgroup layout the container is running with.
* - CGROUP_LAYOUT_UNKNOWN
* The cgroup layout could not be determined. This should be treated as an
* error condition.
* - CGROUP_LAYOUT_LEGACY
* The container is running with all controllers mounted into legacy cgroup
* hierarchies.
* - CGROUP_LAYOUT_HYBRID
* The container is running with at least one controller mounted into a
* legacy cgroup hierarchy and a mountpoint for the unified hierarchy. The
* unified hierarchy can be empty (no controllers enabled) or non-empty
* (controllers enabled).
* - CGROUP_LAYOUT_UNIFIED
* The container is running on a pure unified cgroup hierarchy. The unified
* hierarchy can be empty (no controllers enabled) or non-empty (controllers
* enabled).
*/
cgroup_layout_t
cgroup_layout
;
/* What controllers is the container supposed to use. */
char
*
cgroup_use
;
/*
* @lxc_cgfsng_debug - whether to print debug info to stdout for the cgfsng
* driver
/* @lxc_cgfsng_debug
* - Whether to print debug info to stdout for the cgfsng driver.
*/
static
bool
lxc_cgfsng_debug
;
#define CGFSNG_DEBUG(format, ...) do { \
if (lxc_cgfsng_debug) \
printf("cgfsng: " format, ##__VA_ARGS__); \
} while(0)
#define CGFSNG_DEBUG(format, ...) \
do { \
if (lxc_cgfsng_debug) \
printf("cgfsng: " format, ##__VA_ARGS__); \
} while (0)
static
void
free_string_list
(
char
**
clist
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment