函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-27 14:25:18
Last Modify:2022-05-23 09:15:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:his lookup function can only be called with bucket lock taken

函数原型:static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash, void *key, u32 key_size)

返回类型:struct htab_elem

参数:

类型参数名称
struct hlist_nulls_head *head
u32hash
void *key
u32key_size
427  hlist_nulls_for_each_entry_rcu - iterate over rcu list of given type*@tpos: the type * to use as a loop cursor.*@pos: the &struct hlist_nulls_node to use as a loop cursor.*@head: the head for your list.(l, n, head, hash_node)
428  如果hash恒等于hash且非内存比较则返回:l
431  返回:NULL
调用者
名称描述
htab_map_update_elemCalled from syscall or from eBPF program
htab_lru_map_update_elem
__htab_percpu_map_update_elem
__htab_lru_percpu_map_update_elem
htab_map_delete_elemCalled from syscall or from eBPF program
htab_lru_map_delete_elem