函数逻辑报告

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

函数名称:缓存是克隆的?

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

返回类型:int

参数:

类型参数名称
const struct sk_buff *skb
1600  返回:clonedatomic_read( & Warning : all fields before dataref are cleared in __alloc_skb())按位与SKB_DATAREF_MASK的值不等于1
调用者
名称描述
skb_unclone
skb_unshare复制一个共享缓冲区
skb_try_make_writable
skb_cow为请求复制缓存头
skb_linearize_cow确保其是线性的和可写的
skb_head_is_lockedskb_head_is_locked - Determine if the skb->head is locked down*@skb: skb to check* The head on skbs build around a head frag can be removed if they are* not cloned
sk_wmem_free_skb