Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__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

Proto:static inline int __skb_put_padto(struct sk_buff *skb, unsigned int len, bool free_on_error)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
unsigned intlen
boolfree_on_error
3189  size = len
3191  If Value for the false possibility is greater at compile time(size < len) Then
3192  len -= size
3193  If __skb_pad(skb, len, free_on_error) Then Return -ENOMEM
3195  __skb_put(skb, len)
3197  Return 0