函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:skb_do_copy_data_nocache

函数原型:static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, char *to, int copy, int offset)

返回类型:int

参数:

类型参数名称
struct sock *sk
struct sk_buff *skb
struct iov_iter *from
char *to
intcopy
intoffset
1984  如果ip_summed恒等于Don't change this without changing skb_csum_unnecessary!
1985  csum等于0
1986  如果非csum_and_copy_from_iter_full(to, copy, & csum, from)则返回:负EFAULT
1988  csum等于csum_block_add(csum, csum, offset)
1989  否则如果sk_route_caps按位与NETIF_F_NOCACHE_COPY
1990  如果非copy_from_iter_full_nocache(to, copy, from)则返回:负EFAULT
1992  否则如果非copy_from_iter_full(to, copy, from)则返回:负EFAULT
1995  返回:0
调用者
名称描述
skb_add_data_nocache
skb_copy_to_page_nocache