函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check for the presence of extended state information in the* user fpstate pointer in the sigcontext.

函数原型:static inline int check_for_xstate(struct fxregs_state __user *buf, void __user *fpstate, struct _fpx_sw_bytes *fx_sw)

返回类型:int

参数:

类型参数名称
struct fxregs_state __user *buf
void __user *fpstate
struct _fpx_sw_bytes *fx_sw
28  min_xstate_size等于sizeof(structfxregs_state)加sizeof(structxstate_header)
32  如果__copy_from_user(fx_sw, & sw_reserved[0], fx_sw的长度)则返回:负1
36  如果If set to FP_XSTATE_MAGIC1 then this is an xstate context.* 0 if a legacy frame.不等于FP_XSTATE_MAGIC1Actual XSAVE state size, based on the xfeatures saved in the layout.* 'extended_size' is greater than 'xstate_size':小于min_xstate_sizeActual XSAVE state size, based on the xfeatures saved in the layout.* 'extended_size' is greater than 'xstate_size':大于fpu_user_xstate_sizeActual XSAVE state size, based on the xfeatures saved in the layout.* 'extended_size' is greater than 'xstate_size':大于Total size of the fpstate area:* - if magic1 == 0 then it's sizeof(struct _fpstate)* - if magic1 == FP_XSTATE_MAGIC1 then it's sizeof(struct _xstate)* plus extensions (if any)则返回:负1
48  如果__get_user - Get a simple variable from user space, with less checking(magic2, (__u32__user * )(fpstate + Actual XSAVE state size, based on the xfeatures saved in the layout.* 'extended_size' is greater than 'xstate_size':))或magic2不等于FP_XSTATE_MAGIC2则返回:负1
52  返回:0
调用者
名称描述
__fpu__restore_sig