Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-28 13:17:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:btf_put

Proto:void btf_put(struct btf *btf)

Type:void

Parameter:

TypeParameterName
struct btf *btf
913  If btf && _dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED Then
914  btf_free_id(btf)
915  all_rcu() - Queue an RCU callback for invocation after a grace period
Caller
NameDescribe
map_createalled via syscall
__bpf_prog_put_noref
btf_release
btf_new_fd
btf_get_fd_by_id
__bpf_map_putdecrement map refcnt and schedule it for freeing via workqueue* (unrelying map implementation ops->map_free() might sleep)