函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:skb_needs_linearize - check if we need to linearize a given skb* depending on the given device features.*@skb: socket buffer to check*@features: net device features* Returns true if either:* 1. skb has frag_list and the device doesn't support FRAGLIST, or

函数原型:static inline bool skb_needs_linearize(struct sk_buff *skb, netdev_features_t features)

返回类型:bool

参数:

类型参数名称
struct sk_buff *skb
netdev_features_tfeatures
3596  返回:skb_is_nonlinear(skb)且skb_has_frag_list(skb)且非features按位与NETIF_F_FRAGLIST的值或nr_frags且非features按位与NETIF_F_SG的值的值