Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_fpregs_to_sigframe

Proto:static inline int copy_fpregs_to_sigframe(struct xregs_state __user *buf)

Type:int

Parameter:

TypeParameterName
struct xregs_state __user *buf
131  If use_xsave() Then err = Save xstate to user space xsave area.* We don't use modified optimization because xrstor/xrstors might track* a different application.* We don't use compacted format xsave area for* backward compatibility for old applications which don't understand
133  Else if use_fxsr() Then err = copy_fxregs_to_user((structfxregs_state__user * )buf)
135  Else err = copy_fregs_to_user((structfregs_state__user * )buf)
138  If Value for the false possibility is greater at compile time(err) && Zero a block of memory in user space, with less checking Then err = -EFAULT
140  Return err
Caller
NameDescribe
copy_fpstate_to_sigframeSave the fpu, extended register state to the user signal frame.* 'buf_fx' is the 64-byte aligned pointer at which the [f|fx|x]save* state is copied.* 'buf' points to the 'buf_fx' or to the fsave header followed by 'buf_fx'.