函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\core.c Create Date:2022-07-27 13:59:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:No hurry in this branch* Exported for the bpf jit load helper.

函数原型:void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size)

返回类型:void

参数:

类型参数名称
const struct sk_buff *skb
intk
unsigned intsize
65  u8 * ptr = NULL
67  如果k大于等于SKF_NET_OFFptr等于skb_network_header(skb)加kSKF_NET_OFF
69  否则如果k大于等于SKF_LL_OFFptr等于skb_mac_header(skb)加kSKF_LL_OFF
72  如果ptr大于等于headptrsize小于等于skb_tail_pointer(skb)则返回:ptr
75  返回:NULL
调用者
名称描述
bpf_load_pointer