函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:skb_add_data

函数原型:static inline int skb_add_data(struct sk_buff *skb, struct iov_iter *from, int copy)

返回类型:int

参数:

类型参数名称
struct sk_buff *skb
struct iov_iter *from
intcopy
3218  off等于len
3220  如果ip_summed恒等于Don't change this without changing skb_csum_unnecessary!
3221  csum等于0
3224  csum等于csum_block_add(csum, csum, off)
3225  返回:0
3227  否则如果copy_from_iter_full(设置数据在缓存区, copy, from)则返回:0
3230  __skb_trim(skb, off)
3231  返回:负EFAULT