Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lease function corresponding to acquire_reference_state(). Idempotent.

Proto:static int release_reference_state(struct bpf_func_state *state, int ptr_id)

Type:int

Parameter:

TypeParameterName
struct bpf_func_state *state
intptr_id
696  last_idx = The following fields should be last. See copy_func_state() - 1
697  When i < The following fields should be last. See copy_func_state() cycle
699  If last_idx && i != last_idx Then No 3D Now!( & refs[i], & refs[last_idx], size of refs )
702  memset( & refs[last_idx], 0, size of refs )
704  Return 0
707  Return -EINVAL
Caller
NameDescribe
release_referenceThe pointer with the specified id has released its reference to kernel* resources. Identify all copies of the same pointer and clear the reference.
mark_ptr_or_null_regsThe logic is similar to find_good_pkt_pointers(), both could eventually* be folded together at some point.