函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\filter.h Create Date:2022-07-27 07:05:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Compute the linear packet data range [data, data_end) which* will be accessed by various program types (cls_bpf, act_bpf,* lwt, ...). Subsystems allowing direct data access must (!)* ensure that cb[] area can be written to when BPF program is

函数原型:static inline void bpf_compute_data_pointers(struct sk_buff *skb)

返回类型:void

参数:

类型参数名称
struct sk_buff *skb
609  cb等于* This is the control buffer. It is free to use for every * layer. Please put your private variables there. If you * want to keep them across layers you have to do a skb_clone() * first. This is owned by whoever has the skb queued ATM.
611  BUILD_BUG_ON - break compile if a condition is true(cb的长度 > sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structsk_buff, cb))
612  data_meta等于dataskb_metadata_len(skb)
613  data_end等于dataskb_headlen(skb)