Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:an be called without bucket lock. it will repeat the loop in* the unlikely event when elements moved from one bucket into another* while link list is being walked

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

Type:struct htab_elem

Parameter:

TypeParameterName
struct hlist_nulls_head *head
u32hash
void *key
u32key_size
u32n_buckets
445  again :
446  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)
447  If hash == hash && Not memcmp( & key, key, key_size) Then Return l
450  If Value for the false possibility is greater at compile time(get_nulls_value - Get the 'nulls' value of the end of chain*@ptr: end of chain* Should be called only if is_a_nulls(ptr); != (hash & (n_buckets - 1))) Then Go to again
453  Return NULL
Caller
NameDescribe
__htab_map_lookup_elemCalled from syscall or from eBPF program directly, so* arguments have to match bpf_map_lookup_elem() exactly.* The return value is adjusted by BPF instructions* in htab_map_gen_lookup().
htab_map_get_next_keyCalled from syscall
htab_map_update_elemCalled from syscall or from eBPF program