Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:skb_tailroom_reserve - adjust reserved_tailroom*@skb: buffer to alter*@mtu: maximum amount of headlen permitted*@needed_tailroom: minimum amount of reserved_tailroom* Set reserved_tailroom so that headlen can be as large as possible but* not larger than

Proto:static inline void skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, unsigned int needed_tailroom)

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
unsigned intmtu
unsigned intneeded_tailroom
2359  SKB_LINEAR_ASSERT(skb)
2360  If mtu < skb_tailroom - bytes at buffer end*@skb: buffer to check* Return the number of bytes of free space at the tail of an sk_buff - needed_tailroom Then reserved_tailroom = skb_tailroom - bytes at buffer end*@skb: buffer to check* Return the number of bytes of free space at the tail of an sk_buff - mtu
2363  Else reserved_tailroom = needed_tailroom