Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\checksum_32.h Create Date:2022-07-28 05:51:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:csum_and_copy_to_user

Proto:static inline __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len, __wsum sum, int *err_ptr)

Type:__wsum

Parameter:

TypeParameterName
const void *src
void __user *dst
intlen
__wsumsum
int *err_ptr
184  might_sleep()
185  If access_ok(dst, len) Then
186  stac()
187  ret = he same as csum_partial, but copies from src while it* checksums, and handles user-space pointer exceptions correctly, when needed.* here even more important to align src and dst on a 32-bit (or even* better 64-bit) boundary
189  clac()
190  Return ret
193  If len Then err_ptr = -EFAULT
196  Return __force - 1
Caller
NameDescribe
csum_and_copy_to_iter