函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xstateregs_get

函数原型:int xstateregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf)

返回类型:int

参数:

类型参数名称
struct task_struct *target
const struct user_regset *regset
unsigned intpos
unsigned intcount
void *kbuf
void __user *ubuf
80  fpu等于 Floating point and extended processor state
84  如果非boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions )则返回:负ENODEV
87  xsave等于xsave
89  This function must be called before we read a task's fpstate
91  如果using_compacted_format()则
92  如果kbufret等于copy_xstate_to_kernel(kbuf, xsave, pos, count)
94  否则ret等于copy_xstate_to_user(ubuf, xsave, pos, count)
96  否则
97  When executing XSAVEOPT (or other optimized XSAVE instructions), if* a processor implementation detects that an FPU state component is still* (or is again) in its initialized state, it may clear the corresponding* bit in the header
103  memcpy( & sw_reserved, xstate_fx_sw_bytes, xstate_fx_sw_bytes的长度)
108  ret等于These are helpers for writing regset get/set functions in arch code
110  返回:ret