函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-27 14:04:20
Last Modify:2022-05-19 18:06:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_map_free_id

函数原型:void bpf_map_free_id(struct bpf_map *map, bool do_idr_lock)

返回类型:void

参数:

类型参数名称
struct bpf_map *map
booldo_idr_lock
301  如果非id则返回
304  如果do_idr_lockspin_lock_irqsave( & map_idr_lock, flags)
306  否则__acquire( & map_idr_lock)
309  删除释放idr
310  id等于0
312  如果do_idr_lockspin_unlock_irqrestore( & map_idr_lock, flags)
314  否则__release( & map_idr_lock)
调用者
名称描述
__bpf_map_putdecrement map refcnt and schedule it for freeing via workqueue* (unrelying map implementation ops->map_free() might sleep)
__bpf_map_offload_destroy