函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:delete_all_elements

函数原型:static void delete_all_elements(struct bpf_htab *htab)

返回类型:void

参数:

类型参数名称
struct bpf_htab *htab
1176 i小于 number of hash buckets 循环
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)
调用者
名称描述
htab_map_freeCalled when map->refcnt goes to zero, either from workqueue or from syscall