Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\skbuff.h Create Date:2022-07-28 05:52:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__skb_cow

Proto:static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, int cloned)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
unsigned intheadroom
intcloned
3114  delta = 0
3116  If headroom > skb_headroom - bytes at buffer head*@skb: buffer to check* Return the number of bytes of free space at the head of an &sk_buff. Then delta = headroom - skb_headroom - bytes at buffer head*@skb: buffer to check* Return the number of bytes of free space at the head of an &sk_buff.
3119  If delta || cloned Then Return reallocate header of sk_buff
3122  Return 0