函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fpregs_set

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

返回类型:int

参数:

类型参数名称
struct task_struct *target
const struct user_regset *regset
unsigned intpos
unsigned intcount
const void *kbuf
const void __user *ubuf
328  fpu等于 Floating point and extended processor state
332  This function must be called before we write a task's fpstate.* Invalidate any cached FPU registers.* After this function call, after registers in the fpstate are* modified and the child task has woken up, the child task will
333  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
335  如果非boot_cpu_has(Onboard FPU )则返回:fpregs_soft_set(target, regset, pos, count, kbuf, ubuf)
338  如果非boot_cpu_has(FXSAVE/FXRSTOR, CR4.OSFXSR )则返回:user_regset_copyin( & pos, & count, & kbuf, & ubuf, & fsave, 0, - 1)
343  如果pos大于0或count小于env的长度则FXSR floating point environment conversions.
346  ret等于user_regset_copyin( & pos, & count, & kbuf, & ubuf, & env, 0, - 1)
347  如果非retconvert_to_fxsr( & fxsave, & env)
354  如果boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions )则xfeatures或等于XFEATURE_MASK_FP
356  返回:ret