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
3baf0fc8
Unverified
Commit
3baf0fc8
authored
Feb 02, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: reorder cgroup_get() arguments
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a29cc280
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
cgfsng.c
src/lxc/cgroups/cgfsng.c
+3
-3
cgroup.h
src/lxc/cgroups/cgroup.h
+3
-3
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
No files found.
src/lxc/cgroups/cgfsng.c
View file @
3baf0fc8
...
@@ -2500,9 +2500,9 @@ __cgfsng_ops static bool cgfsng_attach(struct cgroup_ops *ops,
...
@@ -2500,9 +2500,9 @@ __cgfsng_ops static bool cgfsng_attach(struct cgroup_ops *ops,
return
true
;
return
true
;
}
}
int
cgroup_get
(
struct
lxc_conf
*
conf
,
const
char
*
filename
,
int
cgroup_get
(
struct
lxc_conf
*
conf
,
c
har
*
buf
,
size_t
len
,
c
onst
char
*
name
,
const
char
*
lxcpath
,
const
char
*
name
,
const
char
*
lxcpath
)
const
char
*
filename
,
char
*
buf
,
size_t
len
)
{
{
__do_close
int
unified_fd
=
-
EBADF
;
__do_close
int
unified_fd
=
-
EBADF
;
ssize_t
ret
;
ssize_t
ret
;
...
...
src/lxc/cgroups/cgroup.h
View file @
3baf0fc8
...
@@ -191,9 +191,9 @@ __hidden extern void prune_init_scope(char *cg);
...
@@ -191,9 +191,9 @@ __hidden extern void prune_init_scope(char *cg);
__hidden
extern
int
cgroup_attach
(
const
struct
lxc_conf
*
conf
,
const
char
*
name
,
__hidden
extern
int
cgroup_attach
(
const
struct
lxc_conf
*
conf
,
const
char
*
name
,
const
char
*
lxcpath
,
pid_t
pid
);
const
char
*
lxcpath
,
pid_t
pid
);
__hidden
extern
int
cgroup_get
(
struct
lxc_conf
*
conf
,
const
char
*
file
name
,
__hidden
extern
int
cgroup_get
(
struct
lxc_conf
*
conf
,
const
char
*
name
,
c
har
*
buf
,
size_t
len
,
const
char
*
name
,
c
onst
char
*
lxcpath
,
const
char
*
file
name
,
c
onst
char
*
lxcpath
);
c
har
*
buf
,
size_t
len
);
static
inline
bool
pure_unified_layout
(
const
struct
cgroup_ops
*
ops
)
static
inline
bool
pure_unified_layout
(
const
struct
cgroup_ops
*
ops
)
{
{
...
...
src/lxc/lxccontainer.c
View file @
3baf0fc8
...
@@ -3306,7 +3306,7 @@ static int do_lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys
...
@@ -3306,7 +3306,7 @@ static int do_lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys
if
(
is_stopped
(
c
))
if
(
is_stopped
(
c
))
return
-
1
;
return
-
1
;
ret
=
cgroup_get
(
c
->
lxc_conf
,
subsys
,
retv
,
inlen
,
c
->
name
,
c
->
config_path
);
ret
=
cgroup_get
(
c
->
lxc_conf
,
c
->
name
,
c
->
config_path
,
subsys
,
retv
,
inlen
);
if
(
ret
==
ENOCGROUP2
)
{
if
(
ret
==
ENOCGROUP2
)
{
cgroup_ops
=
cgroup_init
(
c
->
lxc_conf
);
cgroup_ops
=
cgroup_init
(
c
->
lxc_conf
);
if
(
!
cgroup_ops
)
if
(
!
cgroup_ops
)
...
...
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