Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:delete_all_elements

Proto:static void delete_all_elements(struct bpf_htab *htab)

Type:void

Parameter:

TypeParameterName
struct bpf_htab *htab
1176  When i < number of hash buckets cycle
1177  head = select_bucket(htab, i)
1182  hlist_nulls_del_rcu - deletes entry from hash list without re-initialization*@n: the element to delete from the hash list.* Note: hlist_nulls_unhashed() on entry does not return true after this,* the entry is in an undefined state
1183  htab_elem_free(htab, l)
Caller
NameDescribe
htab_map_freeCalled when map->refcnt goes to zero, either from workqueue or from syscall