Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:54:44 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_map_get_info_by_fd
Proto:static int bpf_map_get_info_by_fd(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_map * | map | |
const union bpf_attr * | attr | |
union bpf_attr __user * | uattr |
2754 | __user * uinfo = u64_to_user_ptr(info) |
2755 | struct bpf_map_info info = {} |
2762 | info_len = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, size of info , info_len) |
2767 | value_size = value_size |
2768 | max_entries = max_entries |
2770 | No 3D Now!(name, name, size of name ) |
2772 | If btf Then |
2774 | btf_key_type_id = btf_key_type_id |
2778 | If bpf_map_is_dev_bound(map) Then |
2784 | If copy_to_user(uinfo, & info, info_len) || Write a simple value into user space(info_len, & info_len) Then Return -EFAULT |
2788 | Return 0 |
Name | Describe |
---|---|
bpf_obj_get_info_by_fd |
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 |