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:kernel_fpu_begin

Proto:void kernel_fpu_begin(void)

Type:void

Parameter:Nothing

87  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
89  WARN_ON_FPU(!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.)
90  WARN_ON_FPU(Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.( Track whether the kernel is using the FPU state currently))
92  this_cpu_write( Track whether the kernel is using the FPU state currently, true)
94  If Not (flags & I am a kernel thread ) && Not test_thread_flag(load FPU on return to userspace ) Then
96  set_thread_flag(load FPU on return to userspace )
101  These must be called with preempt disabled
103  The in-register FPU state for an FPU context on a CPU is assumed to be* valid if the fpu->last_cpu matches the CPU, and the fpu_fpregs_owner_ctx* matches the FPU.* If the FPU register state is valid, the kernel can skip restoring the
Caller
NameDescribe
raid6_mmx2_gen_syndromeUnrolled-by-2 MMX implementation
raid6_sse11_gen_syndromePlain SSE1 implementation
raid6_sse12_gen_syndromeUnrolled-by-2 SSE1 implementation
raid6_sse21_gen_syndromePlain SSE2 implementation
raid6_sse21_xor_syndrome
raid6_sse22_gen_syndromeUnrolled-by-2 SSE2 implementation
raid6_sse22_xor_syndrome
raid6_sse24_gen_syndromeUnrolled-by-4 SSE2 implementation
raid6_sse24_xor_syndrome
fast_clear_pageGeneric MMX implementation without K7 specific streaming
fast_copy_page
raid6_mmx1_gen_syndromePlain MMX implementation
fpu__init_check_bugsThis used to check for exceptions