Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:17:47
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_sigaltstack

Proto:static int do_sigaltstack(const stack_t *ss, stack_t *oss, unsigned long sp, size_t min_ss_size)

Type:int

Parameter:

TypeParameterName
const stack_t *ss
stack_t *oss
unsigned longsp
size_tmin_ss_size
3998  t = current process
4000  If oss Then
4001  memset(oss, 0, sizeof(stack_t))
4002  ss_sp = sas_ss_sp
4003  ss_size = sas_ss_size
4004  ss_flags = sas_ss_flags(sp) | sas_ss_flags & mask for all SS_xxx flags
4008  If ss Then
4009  __user * ss_sp = ss_sp
4010  ss_size = ss_size
4011  ss_flags = ss_flags
4014  If Value for the false possibility is greater at compile time(True if we are on the alternate signal stack.) Then Return -EPERM
4017  ss_mode = ss_flags & ~mask for all SS_xxx flags
4018  If Value for the false possibility is greater at compile time(ss_mode != SS_DISABLE && ss_mode != SS_ONSTACK && ss_mode != 0) Then Return -EINVAL
4022  If ss_mode == SS_DISABLE Then
4023  ss_size = 0
4024  ss_sp = NULL
4025  Else
4030  sas_ss_sp = ss_sp
4031  sas_ss_size = ss_size
4032  sas_ss_flags = ss_flags
4034  Return 0
Caller
NameDescribe
SYSCALL_DEFINE2
restore_altstack
do_compat_sigaltstack