Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
const stack_t * | ss | |
stack_t * | oss | |
unsigned long | sp | |
size_t | min_ss_size |
3998 | t = current process |
4000 | If oss Then |
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 |
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 |
4025 | Else |
4026 | If Value for the false possibility is greater at compile time(ss_size < min_ss_size) Then Return -ENOMEM |
4031 | sas_ss_size = ss_size |
4032 | sas_ss_flags = ss_flags |
4034 | Return 0 |
Name | Describe |
---|---|
SYSCALL_DEFINE2 | |
restore_altstack | |
do_compat_sigaltstack |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |