Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called when map->refcnt goes to zero, either from workqueue or from syscall

Proto:static void htab_map_free(struct bpf_map *map)

Type:void

Parameter:

TypeParameterName
struct bpf_map *map
1191  htab = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_htab, map)
1198  Wait for a grace period to elapse. But it is illegal to invoke* synchronize_rcu() from within an RCU read-side critical section.* Therefore, any legal call to synchronize_rcu() is a quiescent
1203  rcu_barrier()
1204  If Not htab_is_prealloc(htab) Then delete_all_elements(htab)
1206  Else prealloc_destroy(htab)
1209  free previously allocated percpu memory
1210  bpf_map_area_free(buckets)
1211  kfree(htab)
Caller
NameDescribe
fd_htab_map_free