函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Clear the FPU state back to init state.* Called by sys_execve(), by the signal handler code and by various* error paths.

函数原型:void fpu__clear(struct fpu *fpu)

返回类型:void

参数:

类型参数名称
struct fpu *fpu
323  WARN_ON_FPU(fpu != & fpu)
325  Drops current FPU state: deactivates the fpregs and* the fpstate. NOTE: it still leaves previous contents* in the fpregs in the eager-FPU case.* This function can be used in cases where we know that* a state-restore is coming: either an explicit one,
330  Activate the current task's in-memory FPU context,* if it has not been used before:
331  如果static_cpu_has(Onboard FPU )则Clear FPU registers by setting them up from* the init fpstate:
调用者
名称描述
flush_thread
__fpu__restore_sig
handle_signal自定义信号处理函数