函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static inline bool skb_unref(struct sk_buff *skb)

返回类型:bool

参数:

类型参数名称
struct sk_buff *skb
1008  如果此条件成立可能性小(为编译器优化)(!skb)则返回:false
1010  如果此条件成立可能性大(为编译器优化)(_read - get a refcount's value*@r: the refcount* Return: the refcount's value == 1)则smp_rmb()
1012  否则如果此条件成立可能性大(为编译器优化)(!_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)则返回:false
1015  返回:true