函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\signal.c Create Date:2022-07-27 08:29:56
Last Modify:2022-05-22 06:23:02 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_sigframe

函数原型:static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size, void __user **fpstate)

返回类型:void

参数:

类型参数名称
struct k_sigaction *ka
struct pt_regs *regs
size_tframe_size
void __user **fpstate
244  math_size等于0
245  sp等于sp
246  buf_fx等于0
247  onsigstack等于True if we are on the alternate signal stack.
251  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_64)则sp减等于128
255  如果sa_flags按位与SA_ONSTACK
256  如果sas_ss_flags(sp)恒等于0则sp等于sas_ss_spsas_ss_size
258  否则如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32)且非onsigstackss不等于__USER_DS且非sa_flags按位与SA_RESTORER的值且sa_restorer
264  sp等于sa_restorer
267  sp等于fpu__alloc_mathframe(sp, IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32), & buf_fx, & math_size)
269  fpstate等于sp
271  sp等于Determine which stack to use..
277  如果onsigstack且非此条件成立可能性大(为编译器优化)(True if we are on the alternate signal stack.)则返回:(void __user * ) - 1L
281  ret等于Save 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'.
282  如果ret小于0则返回:(void __user * ) - 1L
285  返回:sp
调用者
名称描述
__setup_frame
__setup_rt_frame