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:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This is similar to user_regset_copyout(), but will not add offset to* the source data pointer or increment pos, count, kbuf, and ubuf.

Proto:static inline void __copy_xstate_to_kernel(void *kbuf, const void *data, unsigned int offset, unsigned int size, unsigned int size_total)

Type:void

Parameter:

TypeParameterName
void *kbuf
const void *data
unsigned intoffset
unsigned intsize
unsigned intsize_total
967  If offset < size_total Then
968  copy = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(size, size_total - offset)
970  memcpy(kbuf + offset, data, copy)
Caller
NameDescribe
copy_xstate_to_kernelConvert from kernel XSAVES compacted format to standard format and copy* to a kernel-space ptrace 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.