Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-28 13:22:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__dev_map_hash_lookup_elem

Proto:struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key)

Type:struct bpf_dtab_netdev

Parameter:

TypeParameterName
struct bpf_map *map
u32key
292  dtab = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_dtab, map)
293  head = dev_map_index_hash(dtab, key)
296  hlist_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the hlist_node within the struct.(dev, head, index_hlist, lockdep_is_held( & index_lock))
298  If keep track of map index for tracepoint == key Then Return dev
301  Return NULL
Caller
NameDescribe
dev_map_hash_get_next_key
dev_map_hash_lookup_elem
dev_map_hash_delete_elem
__dev_map_hash_update_elem