函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\fpu\signal.c Create Date:2022-07-27 08:50:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_fpregs_to_sigframe

函数原型:static inline int copy_fpregs_to_sigframe(struct xregs_state __user *buf)

返回类型:int

参数:

类型参数名称
struct xregs_state __user *buf
131  如果use_xsave()则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  否则如果use_fxsr()则err等于copy_fxregs_to_user((structfxregs_state__user * )buf)
135  否则err等于copy_fregs_to_user((structfregs_state__user * )buf)
138  如果此条件成立可能性小(为编译器优化)(err)且以最小的代价用户内存块清零err等于负EFAULT
140  返回:err
调用者
名称描述
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'.