Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:skb_zcopy_set

Proto:static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, bool *have_ref)

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
struct ubuf_info *uarg
bool *have_ref
1420  If skb && uarg && Not skb_zcopy(skb) Then
1421  If Value for the false possibility is greater at compile time(have_ref && * have_ref) Then * have_ref = false
1423  Else sock_zerocopy_get(uarg)
1425  Intermediate layers must ensure that destructor_arg* remains valid until skb destructor = uarg
1426  tx_flags |= SKBTX_ZEROCOPY_FRAG