Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:No hurry in this branch* Exported for the bpf jit load helper.

Proto:void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size)

Type:void

Parameter:

TypeParameterName
const struct sk_buff *skb
intk
unsigned intsize
65  u8 * ptr = NULL
67  If k >= SKF_NET_OFF Then ptr = skb_network_header(skb) + k - SKF_NET_OFF
69  Else if k >= SKF_LL_OFF Then ptr = skb_mac_header(skb) + k - SKF_LL_OFF
72  If ptr >= head && ptr + size <= skb_tail_pointer(skb) Then Return ptr
75  Return NULL
Caller
NameDescribe
bpf_load_pointer