Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\regset.c Create Date:2022-07-28 07:49:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xfpregs_set

Proto:int xfpregs_set(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, const void *kbuf, const void __user *ubuf)

Type:int

Parameter:

TypeParameterName
struct task_struct *target
const struct user_regset *regset
unsigned intpos
unsigned intcount
const void *kbuf
const void __user *ubuf
49  fpu = Floating point and extended processor state
52  If Not boot_cpu_has(FXSAVE/FXRSTOR, CR4.OSFXSR ) Then Return -ENODEV
55  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
56  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
58  ret = user_regset_copyin( & pos, & count, & kbuf, & ubuf, & fxsave, 0, - 1)
64  MXCSR Register State &= Boot time FPU feature detection code:
70  If boot_cpu_has(XSAVE/XRSTOR/XSETBV/XGETBV instructions ) Then xfeatures |= XFEATURE_MASK_FPSSE
73  Return ret