Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\xstate.c Create Date:2022-07-28 07:50:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__copy_xstate_to_user

Proto:static inline int __copy_xstate_to_user(void __user *ubuf, const void *data, unsigned int offset, unsigned int size, unsigned int size_total)

Type:int

Parameter:

TypeParameterName
void __user *ubuf
const void *data
unsigned intoffset
unsigned intsize
unsigned intsize_total
1047  If Not size Then Return 0
1050  If offset < size_total Then
1051  copy = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(size, size_total - offset)
1053  If __copy_to_user(ubuf + offset, data, copy) Then Return -EFAULT
1056  Return 0
Caller
NameDescribe
copy_xstate_to_userConvert from kernel XSAVES compacted format to standard format and copy* to a user-space buffer. It supports partial copy but pos always starts from* zero. This is called from xstateregs_get() and there we check the CPU* has XSAVES.