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
15970277
Unverified
Commit
15970277
authored
Feb 19, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpf: fix typos
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a0f0e9df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
cgfsng.c
src/lxc/cgroups/cgfsng.c
+3
-3
cgroup2_devices.c
src/lxc/cgroups/cgroup2_devices.c
+3
-3
cgroup2_devices.h
src/lxc/cgroups/cgroup2_devices.h
+3
-3
No files found.
src/lxc/cgroups/cgfsng.c
View file @
15970277
...
@@ -3096,9 +3096,9 @@ static int bpf_device_cgroup_prepare(struct cgroup_ops *ops,
...
@@ -3096,9 +3096,9 @@ static int bpf_device_cgroup_prepare(struct cgroup_ops *ops,
return
log_error_errno
(
-
1
,
EINVAL
,
"Failed to parse device string %s=%s"
,
key
,
val
);
return
log_error_errno
(
-
1
,
EINVAL
,
"Failed to parse device string %s=%s"
,
key
,
val
);
/*
/*
* Note that bpf_list_add_device()
indicates whether or not it had to
* Note that bpf_list_add_device()
returns 1 if it altered the device
*
alter the current device list by return 1 and 0; both indicate
*
list and 0 if it didn't; both return values indicate success.
*
success. A negative return value indicates and
error.
*
Only a negative return value indicates an
error.
*/
*/
ret
=
bpf_list_add_device
(
&
conf
->
bpf_devices
,
&
device_item
);
ret
=
bpf_list_add_device
(
&
conf
->
bpf_devices
,
&
device_item
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
...
src/lxc/cgroups/cgroup2_devices.c
View file @
15970277
...
@@ -653,9 +653,9 @@ bool bpf_cgroup_devices_update(struct cgroup_ops *ops,
...
@@ -653,9 +653,9 @@ bool bpf_cgroup_devices_update(struct cgroup_ops *ops,
return
ret_set_errno
(
false
,
EBADF
);
return
ret_set_errno
(
false
,
EBADF
);
/*
/*
* Note that bpf_list_add_device()
indicates whether or not it had to
* Note that bpf_list_add_device()
returns 1 if it altered the device
*
alter the current device list by return 1 and 0; both indicate
*
list and 0 if it didn't; both return values indicate success.
*
success. A negative return value indicates and
error.
*
Only a negative return value indicates an
error.
*/
*/
ret
=
bpf_list_add_device
(
bpf_devices
,
new
);
ret
=
bpf_list_add_device
(
bpf_devices
,
new
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
...
src/lxc/cgroups/cgroup2_devices.h
View file @
15970277
...
@@ -63,9 +63,9 @@ __hidden extern void bpf_device_program_free(struct cgroup_ops *ops);
...
@@ -63,9 +63,9 @@ __hidden extern void bpf_device_program_free(struct cgroup_ops *ops);
__hidden
extern
bool
bpf_devices_cgroup_supported
(
void
);
__hidden
extern
bool
bpf_devices_cgroup_supported
(
void
);
/*
/*
* Note that bpf_list_add_device()
indicates whether or not it had to alter the
* Note that bpf_list_add_device()
returns 1 if it altered the device list and
*
current device list by return 1 and 0; both indicate success. A negative
*
0 if it didn't; both return values indicate success. Only a negative return
*
return value indicates and
error.
*
value indicates an
error.
*/
*/
__hidden
extern
int
bpf_list_add_device
(
struct
bpf_devices
*
bpf_devices
,
__hidden
extern
int
bpf_list_add_device
(
struct
bpf_devices
*
bpf_devices
,
struct
device_item
*
device
);
struct
device_item
*
device
);
...
...
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