Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-28 13:09:26
Last Modify:2022-05-23 09:15:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:his lookup function can only be called with bucket lock taken

Proto:static struct htab_elem *lookup_elem_raw(struct hlist_nulls_head *head, u32 hash, void *key, u32 key_size)

Type:struct htab_elem

Parameter:

TypeParameterName
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  If hash == hash && Not memcmp( & key, key, key_size) Then Return l
431  Return NULL
Caller
NameDescribe
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