函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_compat_sigaltstack

函数原型:static int do_compat_sigaltstack(const compat_stack_t __user *uss_ptr, compat_stack_t __user *uoss_ptr)

返回类型:int

参数:

类型参数名称
const compat_stack_t __user *uss_ptr
compat_stack_t __user *uoss_ptr
4082  如果uss_ptr
4084  如果copy_from_user( & uss32, uss_ptr, sizeof(compat_stack_t))则返回:负EFAULT
4086  ss_sp等于A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
4087  ss_flags等于ss_flags
4088  ss_size等于ss_size
4090  ret等于do_sigaltstack(uss_ptr ? & uss : NULL, & uoss, compat_user_stack_pointer(), COMPAT_MINSIGSTKSZ)
4093  如果ret大于等于0且uoss_ptr
4095  memset( & old, 0, old的长度)
4096  ss_sp等于ptr_to_compat(ss_sp)
4097  ss_flags等于ss_flags
4098  ss_size等于ss_size
4099  如果copy_to_user(uoss_ptr, & old, sizeof(compat_stack_t))则ret等于负EFAULT
4102  返回:ret
调用者
名称描述
COMPAT_SYSCALL_DEFINE2
compat_restore_altstack