Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Copy shared buffers into a new sk_buff

Proto:static inline struct sk_buff *skb_unshare(struct sk_buff *skb, gfp_t pri)

Type:struct sk_buff

Parameter:

TypeParameterName
struct sk_buff *skb
gfp_tpri
1717  might_sleep_if(gfpflags_allow_blocking(pri))
1718  If 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
1719  nskb = create private copy of an sk_buff
1722  If Value is more likely to compile time(nskb) Then consume_skb(skb)
1724  Else free an sk_buff
1726  skb = nskb
1728  Return skb