函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__skb_cow

函数原型:static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, int cloned)

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
unsigned intheadroom
intcloned
3114  delta等于0
3116  如果headroom大于缓存区头部字节delta等于headroom缓存区头部字节
3119  如果deltacloned则返回:重新分配sk_buff头
3122  返回:0
调用者
名称描述
skb_cow为请求复制缓存头
skb_cow_headskb_cow_head - skb_cow but only making the head writable*@skb: buffer to cow*@headroom: needed headroom* This function is identical to skb_cow except that we replace the* skb_cloned check by skb_header_cloned