函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fpregs_get

函数原型:int fpregs_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
299  fpu等于 Floating point and extended processor state
302  This function must be called before we read a task's fpstate
304  如果非boot_cpu_has(Onboard FPU )则返回:fpregs_soft_get(target, regset, pos, count, kbuf, ubuf)
307  如果非boot_cpu_has(FXSAVE/FXRSTOR, CR4.OSFXSR )则返回:These are helpers for writing regset get/set functions in arch code
312  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
314  如果kbufpos恒等于0且count恒等于env的长度则
315  FXSR floating point environment conversions.
316  返回:0
319  FXSR floating point environment conversions.
321  返回:These are helpers for writing regset get/set functions in arch code
调用者
名称描述
dump_fpuFPU state for core dumps.* This is only used for a.out dumps now.* It is declared generically using elf_fpregset_t (which is* struct user_i387_struct) but is in fact only used for 32-bit* dumps, so on 64-bit it is really struct user_i387_ia32_struct.