函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pskb_may_pull

函数原型:static inline bool pskb_may_pull(struct sk_buff *skb, unsigned int len)

返回类型:bool

参数:

类型参数名称
struct sk_buff *skb
unsigned intlen
2284  如果此条件成立可能性大(为编译器优化)(len <= skb_headlen(skb))则返回:true
2286  如果此条件成立可能性小(为编译器优化)(len > len)则返回:false
2288  返回:__pskb_pull_tail(skb, len - skb_headlen(skb)) != NULL
调用者
名称描述
pskb_network_may_pull
skb_gro_header_slow
__vlan_get_protocolvlan_get_protocol - get protocol EtherType.*@skb: skbuff to query*@type: first vlan protocol*@depth: buffer to store length of eth and vlan tags in bytes* Returns the EtherType of the packet, regardless of whether it is
skb_vlan_tagged_multi 检查是否为多头的VLAN标记skb
ipv6_mc_may_pullmulticast prototypes (mcast.c)