Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:skb_unref - decrement the skb's reference count*@skb: buffer* Returns true if we can free the skb.

Proto:static inline bool skb_unref(struct sk_buff *skb)

Type:bool

Parameter:

TypeParameterName
struct sk_buff *skb
1008  If Value for the false possibility is greater at compile time(!skb) Then Return false
1010  If Value is more likely to compile time(_read - get a refcount's value*@r: the refcount* Return: the refcount's value == 1) Then smp_rmb()
1012  Else if Value is more likely to compile time(!_dec_and_test - decrement a refcount and test if it is 0*@r: the refcount* Similar to atomic_dec_and_test(), it will WARN on underflow and fail to* decrement when saturated at REFCOUNT_SATURATED) Then Return false
1015  Return true