Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-28 06:09:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:skb_do_copy_data_nocache

Proto: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)

Type:int

Parameter:

TypeParameterName
struct sock *sk
struct sk_buff *skb
struct iov_iter *from
char *to
intcopy
intoffset
1984  If ip_summed == Device failed to checksum this packet e.g. due to lack of capabilities Then
1985  csum = 0
1986  If Not csum_and_copy_from_iter_full(to, copy, & csum, from) Then Return -EFAULT
1988  csum = csum_block_add(csum, csum, offset)
1989  Else if sk_route_caps & NETIF_F_NOCACHE_COPY Then
1990  If Not copy_from_iter_full_nocache(to, copy, from) Then Return -EFAULT
1992  Else if Not copy_from_iter_full(to, copy, from) Then Return -EFAULT
1995  Return 0