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_add_data

Proto:static inline int skb_add_data(struct sk_buff *skb, struct iov_iter *from, int copy)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
struct iov_iter *from
intcopy
3218  off = len
3220  If ip_summed == Device failed to checksum this packet e.g. due to lack of capabilities Then
3221  csum = 0
3225  Return 0
3227  Else if copy_from_iter_full(add data to a buffer, copy, from) Then Return 0
3230  __skb_trim(skb, off)
3231  Return -EFAULT