Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_compat_sigaltstack

Proto:static int do_compat_sigaltstack(const compat_stack_t __user *uss_ptr, compat_stack_t __user *uoss_ptr)

Type:int

Parameter:

TypeParameterName
const compat_stack_t __user *uss_ptr
compat_stack_t __user *uoss_ptr
4082  If uss_ptr Then
4084  If copy_from_user( & uss32, uss_ptr, sizeof(compat_stack_t)) Then Return -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  If ret >= 0 && uoss_ptr Then
4095  memset( & old, 0, size of old )
4096  ss_sp = ptr_to_compat(ss_sp)
4097  ss_flags = ss_flags
4098  ss_size = ss_size
4099  If copy_to_user(uoss_ptr, & old, sizeof(compat_stack_t)) Then ret = -EFAULT
4102  Return ret
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE2
compat_restore_altstack