Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 12:59:27 |
| Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_refcount_ok
Proto:static bool check_refcount_ok(const struct bpf_func_proto *fn, int func_id)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct bpf_func_proto * | fn | |
| int | func_id |
| 3847 | count = 0 |
| 3849 | If arg_type_may_be_refcounted(arg1_type) Then count++ |
| 3851 | If arg_type_may_be_refcounted(arg2_type) Then count++ |
| 3853 | If arg_type_may_be_refcounted(arg3_type) Then count++ |
| 3855 | If arg_type_may_be_refcounted(arg4_type) Then count++ |
| 3857 | If arg_type_may_be_refcounted(arg5_type) Then count++ |
| 3863 | If is_acquire_function(func_id) && count Then Return false |
| 3869 | Return count <= 1 |
| Name | Describe |
|---|---|
| check_func_proto |
| 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 |