函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__copy_xstate_to_user

函数原型:static inline int __copy_xstate_to_user(void __user *ubuf, const void *data, unsigned int offset, unsigned int size, unsigned int size_total)

返回类型:int

参数:

类型参数名称
void __user *ubuf
const void *data
unsigned intoffset
unsigned intsize
unsigned intsize_total
1047  如果非size则返回:0
1050  如果offset小于size_total
1051  copy等于两数取小(size, size_total - offset)
1053  如果__copy_to_user(ubuf + offset, data, copy)则返回:负EFAULT
1056  返回:0
调用者
名称描述
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.