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:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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,

Proto:void fpu__drop(struct fpu *fpu)

Type:void

Parameter:

TypeParameterName
struct fpu *fpu
278  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.()
280  If fpu == fpu Then
282  asm volatile
285  These generally need preemption protection to work,* do try to avoid using these on their own:
288  trace_x86_fpu_dropped(fpu)
290  preempt_enable()
Caller
NameDescribe
fpu__clearClear the FPU state back to init state.* Called by sys_execve(), by the signal handler code and by various* error paths.
exit_threadFree current thread data structures etc..