Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_array_compatible

Proto:bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp)

Type:bool

Parameter:

TypeParameterName
struct bpf_array *array
const struct bpf_prog *fp
1725  If Do we override a kprobe? Then Return false
1728  If Not type Then
1732  'Ownership' of prog array is claimed by the first program that * is going to use this map or by the first program which FD is * stored in the map to make sure that all callers and callees have * the same prog type and JITed flag. = Type of BPF program
1733  jited = Is our filter JIT'ed?
1734  Return true
1737  Return 'Ownership' of prog array is claimed by the first program that * is going to use this map or by the first program which FD is * stored in the map to make sure that all callers and callees have * the same prog type and JITed flag. == Type of BPF program && jited == Is our filter JIT'ed?
Caller
NameDescribe
bpf_check_tail_call
prog_fd_array_get_ptr