函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-27 14:04:12
Last Modify:2022-05-19 18:06:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_map_init_from_attr

函数原型:void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr)

返回类型:void

参数:

类型参数名称
struct bpf_map *map
union bpf_attr *attr
195  map_type等于 one of enum bpf_map_type
196  key_size等于 size of key in bytes
197  value_size等于 size of value in bytes
198  max_entries等于 max number of entries in a map
199  map_flags等于bpf_map_flags_retain_permanent( BPF_MAP_CREATE related * flags defined above.)
200  numa_node等于bpf_map_attr_numa_node(attr)
调用者
名称描述
htab_map_alloc
array_map_alloc
trie_alloc
cgroup_storage_map_alloc
queue_stack_map_alloc
dev_map_init_map
cpu_map_alloc
xsk_map_alloc
bpf_map_offload_map_alloc
stack_map_allocCalled from syscall
reuseport_array_alloc