函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:skb_zcopy_set

函数原型:static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, bool *have_ref)

返回类型:void

参数:

类型参数名称
struct sk_buff *skb
struct ubuf_info *uarg
bool *have_ref
1420  如果skbuarg且非skb_zcopy(skb)则
1421  如果此条件成立可能性小(为编译器优化)(have_ref && * have_ref)则 * have_ref = false
1423  否则sock_zerocopy_get(uarg)
1425  Intermediate layers must ensure that destructor_arg* remains valid until skb destructor 等于uarg
1426  tx_flags或等于SKBTX_ZEROCOPY_FRAG