函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Internal helper, do not use directly. Use switch_fpu_return() instead.

函数原型:static inline void __fpregs_load_activate(void)

返回类型:void

参数:

536  fpu等于fpu
537  cpu等于当前cpu ID()
539  如果WARN_ON_ONCE(flags & I am a kernel thread )则返回
542  如果非fpregs_state_valid(fpu, cpu)则
543  copy_kernel_to_fpregs( & @state:* In-memory copy of all FPU registers that we save/restore* over context switches. If the task is using the FPU then* the registers in the FPU are more recent than this state* copy. If the task context-switches away then they get)
544  fpregs_activate(fpu)
545  @last_cpu:* Records the last CPU on which this context was loaded into* FPU registers等于cpu
547  clear_thread_flag(load FPU on return to userspace )
调用者
名称描述
switch_fpu_returnLoad FPU context before returning to userspace.
copy_fpstate_to_sigframeSave the fpu, extended register state to the user signal frame.* 'buf_fx' is the 64-byte aligned pointer at which the [f|fx|x]save* state is copied.* 'buf' points to the 'buf_fx' or to the fsave header followed by 'buf_fx'.