Function report |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-28 13:27:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:group_bpf_inherit() - inherit effective programs from parent*@cgrp: the cgroup to modify
Proto:int cgroup_bpf_inherit(struct cgroup *cgrp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup * | cgrp |
204 | struct bpf_prog_array * arrays[( size of array of effective progs in this cgroup / sizeof(( array of effective progs in this cgroup )[0]) + ((int)(sizeof(struct{int : ( - !!(__builtin_types_compatible_p(typeof(( array of effective progs in this cgroup )), typeof( & ( array of effective progs in this cgroup )[0]))));}))))] = {} |
213 | When p cycle cgroup_bpf_get(p) |
216 | When i < has to use marco instead of const int, since compiler thinks* that array below is variable length cycle Initialization list head |
221 | Go to cleanup |
223 | When i < has to use marco instead of const int, since compiler thinks* that array below is variable length cycle activate_effective_progs(cgrp, i, arrays[i]) |
226 | Return 0 |
227 | cleanup : |
228 | When i < has to use marco instead of const int, since compiler thinks* that array below is variable length cycle bpf_prog_array_free(arrays[i]) |
233 | Return -ENOMEM |
Name | Describe |
---|---|
cgroup_create | The returned cgroup is fully initialized including its control mask, but* it isn't associated with its kernfs_node and doesn't have the control* mask applied. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |