函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\xstate.c Create Date:2022-07-27 08:50:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static inline void __copy_xstate_to_kernel(void *kbuf, const void *data, unsigned int offset, unsigned int size, unsigned int size_total)

返回类型:void

参数:

类型参数名称
void *kbuf
const void *data
unsigned intoffset
unsigned intsize
unsigned intsize_total
967  如果offset小于size_total
968  copy等于两数取小(size, size_total - offset)
970  memcpy(kbuf + offset, data, copy)
调用者
名称描述
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.