函数逻辑报告 |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-27 14:13:18 |
| Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:check_refcount_ok
函数原型:static bool check_refcount_ok(const struct bpf_func_proto *fn, int func_id)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct bpf_func_proto * | fn | |
| int | func_id |
| 3847 | count等于0 |
| 3849 | 如果arg_type_may_be_refcounted(arg1_type)则count自加 |
| 3851 | 如果arg_type_may_be_refcounted(arg2_type)则count自加 |
| 3853 | 如果arg_type_may_be_refcounted(arg3_type)则count自加 |
| 3855 | 如果arg_type_may_be_refcounted(arg4_type)则count自加 |
| 3857 | 如果arg_type_may_be_refcounted(arg5_type)则count自加 |
| 3863 | 如果is_acquire_function(func_id)且count则返回:false |
| 3869 | 返回:count小于等于1 |
| 名称 | 描述 |
|---|---|
| check_func_proto |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |