Function report |
Source Code:kernel\bpf\local_storage.c |
Create Date:2022-07-28 13:14:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup_storage_check_btf
Proto:static int cgroup_storage_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 |
| 360 | size = sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structbpf_cgroup_storage_key, cgroup_inode_id) |
| 361 | If Not Check that given struct member is a regular int with expected* offset and size. Then Return -EINVAL |
| 367 | m++ |
| 368 | offset = offsetof(structbpf_cgroup_storage_key, attach_type) |
| 369 | size = sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structbpf_cgroup_storage_key, attach_type) |
| 370 | If Not Check that given struct member is a regular int with expected* offset and size. Then Return -EINVAL |
| 373 | 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 |