函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:skb头是克隆的

函数原型:static inline int skb_header_cloned(const struct sk_buff *skb)

返回类型:int

参数:

类型参数名称
const struct sk_buff *skb
1625  如果非cloned则返回:0
1628  dataref等于atomic_read( & Warning : all fields before dataref are cleared in __alloc_skb())
1629  dataref等于dataref按位与SKB_DATAREF_MASK的值减dataref右移We divide dataref into two halves位的值
1630  返回:dataref不等于1
调用者
名称描述
skb_header_unclone
skb_clone_writable是一个可写的克隆头
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