Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Can we use the FPU in kernel mode with the* whole "kernel_fpu_begin/end()" sequence?* It's always ok in process context (ie "not interrupt")* but it is sometimes ok even from an irq.

Proto:bool irq_fpu_usable(void)

Type:bool

Parameter:Nothing

79  Return Not in_interrupt() || Were we in user mode (or vm86 mode) when we were* interrupted?* Doing kernel_fpu_begin/end() is ok if we are running* in an interrupt context from user mode - we'll just* save the FPU state as required. || interrupted_kernel_fpu_idle()
Caller
NameDescribe
kernel_fpu_begin