Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:51:51
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_map_free_id

Proto:void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock)

Type:void

Parameter:

TypeParameterName
struct bpf_map *map
booldo_idr_lock
301  If Not id Then Return
304  If do_idr_lock Then spin_lock_irqsave( & map_idr_lock, flags)
306  Else __acquire( & map_idr_lock)
309  dr_remove() - Remove an ID from the IDR
310  id = 0
312  If do_idr_lock Then spin_unlock_irqrestore( & map_idr_lock, flags)
314  Else __release( & map_idr_lock)
Caller
NameDescribe
__bpf_map_putdecrement map refcnt and schedule it for freeing via workqueue* (unrelying map implementation ops->map_free() might sleep)
__bpf_map_offload_destroy