Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__netdev_alloc_skb_ip_align

Proto:static inline struct sk_buff *__netdev_alloc_skb_ip_align(struct net_device *dev, unsigned int length, gfp_t gfp)

Type:struct sk_buff

Parameter:

TypeParameterName
struct net_device *dev
unsigned intlength
gfp_tgfp
2801  skb = __netdev_alloc_skb(dev, length + We handle most unaligned accesses in hardware. On the other hand* unaligned DMA can be quite expensive on some Nehalem processors.* Based on this we disable the IP header alignment in network drivers., gfp)
2803  If We handle most unaligned accesses in hardware. On the other hand* unaligned DMA can be quite expensive on some Nehalem processors.* Based on this we disable the IP header alignment in network drivers. && skb Then skb_reserve - adjust headroom*@skb: buffer to alter*@len: bytes to move* Increase the headroom of an empty &sk_buff by reducing the tail* room. This is only allowed for an empty buffer.
2805  Return skb