函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-27 14:39:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__dev_map_hash_lookup_elem

函数原型:struct bpf_dtab_netdev *__dev_map_hash_lookup_elem(struct bpf_map *map, u32 key)

返回类型:struct bpf_dtab_netdev

参数:

类型参数名称
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  如果 keep track of map index for tracepoint 恒等于key则返回:dev
301  返回:NULL
调用者
名称描述
dev_map_hash_get_next_key
dev_map_hash_lookup_elem
dev_map_hash_delete_elem
__dev_map_hash_update_elem