函数逻辑报告 |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-27 14:45:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:group_bpf_inherit() - inherit effective programs from parent*@cgrp: the cgroup to modify
函数原型:int cgroup_bpf_inherit(struct cgroup *cgrp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cgroup * | cgrp |
204 | struct bpf_prog_array * arrays[( 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 | 以p循环cgroup_bpf_get(p) |
216 | 以i小于has to use marco instead of const int, since compiler thinks* that array below is variable length循环初始化链表头 |
221 | 转到:cleanup |
223 | 以i小于has to use marco instead of const int, since compiler thinks* that array below is variable length循环activate_effective_progs(cgrp, i, arrays[i]) |
226 | 返回:0 |
227 | cleanup : |
228 | 以i小于has to use marco instead of const int, since compiler thinks* that array below is variable length循环bpf_prog_array_free(arrays[i]) |
233 | 返回:负ENOMEM |
名称 | 描述 |
---|---|
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. |
cgroup_setup_root |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |