函数逻辑报告 |
Source Code:kernel\bpf\cgroup.c |
Create Date:2022-07-27 14:45:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: parent has non-overridable prog attached,* disallow attaching new programs to the descendent cgroup.* if parent has overridable or multi-prog, allow attaching
函数原型:static bool hierarchy_allows_attach(struct cgroup *cgrp, enum bpf_attach_type type, u32 new_flags)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cgroup * | cgrp | |
enum bpf_attach_type | type | |
u32 | new_flags |
114 | p等于cgroup_parent(cgrp) |
115 | 如果非p则返回:true |
117 | 循环 |
121 | 如果flags按位与BPF_F_ALLOW_MULTI则返回:true |
124 | WARN_ON_ONCE(cnt > 1) |
125 | 如果cnt恒等于1则返回:非非flags按位与cgroup-bpf attach flags used in BPF_PROG_ATTACH command* NONE(default): No further bpf programs allowed in the subtree的值 |
127 | p等于cgroup_parent(p) |
129 | 返回:true |
名称 | 描述 |
---|---|
__cgroup_bpf_attach | __cgroup_bpf_attach() - Attach the program to a cgroup, and* propagate the change to descendants*@cgrp: The cgroup which descendants to traverse*@prog: A program to attach*@type: Type of attach operation*@flags: Option flags |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |