Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-28 12:59:27
Last Modify:2022-05-19 20:02:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_refcount_ok

Proto:static bool check_refcount_ok(const struct bpf_func_proto *fn, int func_id)

Type:bool

Parameter:

TypeParameterName
const struct bpf_func_proto *fn
intfunc_id
3847  count = 0
3849  If arg_type_may_be_refcounted(arg1_type) Then count++
3851  If arg_type_may_be_refcounted(arg2_type) Then count++
3853  If arg_type_may_be_refcounted(arg3_type) Then count++
3855  If arg_type_may_be_refcounted(arg4_type) Then count++
3857  If arg_type_may_be_refcounted(arg5_type) Then count++
3863  If is_acquire_function(func_id) && count Then Return false
3869  Return count <= 1
Caller
NameDescribe
check_func_proto