函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline void skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, unsigned int needed_tailroom)

返回类型:void

参数:

类型参数名称
struct sk_buff *skb
unsigned intmtu
unsigned intneeded_tailroom
2359  SKB_LINEAR_ASSERT(skb)
2360  如果mtu小于缓存区尾部字节needed_tailroomreserved_tailroom等于缓存区尾部字节mtu
2363  否则reserved_tailroom等于needed_tailroom