函数逻辑报告

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:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Load PKRU from the FPU context if available. Delay loading of the* complete FPU state until the return to userland.

函数原型:static inline void switch_fpu_finish(struct fpu *new_fpu)

返回类型:void

参数:

类型参数名称
struct fpu *new_fpu
595  pkru_val等于init_pkru_value
598  如果非static_cpu_has(Onboard FPU )则返回
601  set_thread_flag(load FPU on return to userspace )
603  如果非This macro is for detection of features which need kernel* infrastructure to be used(OS Protection Keys Enable )则返回
610  如果mm
611  pk等于get_xsave_addr( & xsave, XFEATURE_PKRU)
612  如果pkpkru_val等于pkru
615  __write_pkru(pkru_val)
调用者
名称描述
__switch_toswitch_to(x,y) should switch tasks from x to y