函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__skb_put_padto - increase size and pad an skbuff up to a minimal size*@skb: buffer to pad*@len: minimal length*@free_on_error: free buffer on error* Pads up a buffer to ensure the trailing bytes exist and are* blanked

函数原型:static inline int __skb_put_padto(struct sk_buff *skb, unsigned int len, bool free_on_error)

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
unsigned intlen
boolfree_on_error
3189  size等于len
3191  如果此条件成立可能性小(为编译器优化)(size < len)则
3192  len减等于size
3193  如果__skb_pad(skb, len, free_on_error)则返回:负ENOMEM
3195  __skb_put(skb, len)
3197  返回:0
调用者
名称描述
skb_put_padtoskb_put_padto - increase size and pad an skbuff up to a minimal size*@skb: buffer to pad*@len: minimal length* Pads up a buffer to ensure the trailing bytes exist and are* blanked. If the buffer already contains sufficient data it* is untouched