函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-27 10:17:44
Last Modify:2020-03-17 13:28:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_sigaltstack

函数原型:static int do_sigaltstack(const stack_t *ss, stack_t *oss, unsigned long sp, size_t min_ss_size)

返回类型:int

参数:

类型参数名称
const stack_t *ss
stack_t *oss
unsigned longsp
size_tmin_ss_size
3998  t等于当前进程
4000  如果oss
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  如果ss
4009  __userss_sp等于ss_sp
4010  ss_size等于ss_size
4011  ss_flags等于ss_flags
4014  如果此条件成立可能性小(为编译器优化)(True if we are on the alternate signal stack.)则返回:负EPERM
4017  ss_mode等于ss_flags按位与mask for all SS_xxx flags 的反
4018  如果此条件成立可能性小(为编译器优化)(ss_mode != SS_DISABLE && ss_mode != SS_ONSTACK && ss_mode != 0)则返回:负EINVAL
4022  如果ss_mode恒等于SS_DISABLE
4023  ss_size等于0
4024  ss_sp = NULL
4025  否则
4030  sas_ss_sp等于ss_sp
4031  sas_ss_size等于ss_size
4032  sas_ss_flags等于ss_flags
4034  返回:0
调用者
名称描述
SYSCALL_DEFINE2
restore_altstack
do_compat_sigaltstack