Function report |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-28 13:11:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:array_map_check_btf
Proto:static int array_map_check_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type, const struct btf_type *value_type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct bpf_map * | map | |
| const struct btf * | btf | |
| const struct btf_type * | key_type | |
| const struct btf_type * | value_type |
| 457 | If btf_type_is_void(key_type) Then |
| 458 | If map_type != BPF_MAP_TYPE_ARRAY || max_entries != 1 Then Return -EINVAL |
| 465 | Return 0 |
| 475 | If BTF_INT_BITS(int_data) != 32 || BTF_INT_OFFSET(int_data) Then Return -EINVAL |
| 478 | Return 0 |
| 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 |