Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:skb_linearize_cow - make sure skb is linear and writable*@skb: buffer to process* If there is no free memory -ENOMEM is returned, otherwise zero* is returned and the old skb data released.

Proto:static inline int skb_linearize_cow(struct sk_buff *skb)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
3287  Return If skb_is_nonlinear(skb) || skb_cloned - is the buffer a clone*@skb: buffer to check* Returns true if the buffer was generated with skb_clone() and is* one of multiple shared copies of the buffer. Cloned buffers are* shared data so must not be written to under normal circumstances. Then __skb_linearize(skb) Else 0