函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:decrement map refcnt and schedule it for freeing via workqueue* (unrelying map implementation ops->map_free() might sleep)

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

返回类型:void

参数:

类型参数名称
struct bpf_map *map
booldo_idr_lock
344  如果atomic64_dec_and_test - decrement and test*@v: pointer of type atomic64_t* Atomically decrements @v by 1 and* returns true if the result is 0, or false for all other* cases.
346  bpf_map_free_id(map, do_idr_lock)
347  btf_put(btf)
348  INIT_WORK( & work, alled from workqueue )
349  schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
调用者
名称描述
bpf_map_put