Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\signal.c Create Date:2022-07-28 07:30:39
Last Modify:2022-05-22 06:23:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_sigframe

Proto:static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size, void __user **fpstate)

Type:void

Parameter:

TypeParameterName
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  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_64) Then sp -= 128
255  If sa_flags & SA_ONSTACK Then
256  If sas_ss_flags(sp) == 0 Then sp = sas_ss_sp + sas_ss_size
258  Else if IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_32) && Not onsigstack && ss != __USER_DS && Not (sa_flags & SA_RESTORER) && sa_restorer Then
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  If onsigstack && Not Value is more likely to compile time(True if we are on the alternate signal stack.) Then Return (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  If ret < 0 Then Return (void __user * ) - 1L
285  Return sp
Caller
NameDescribe
__setup_frame
__setup_rt_frame