函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE4

函数原型:COMPAT_SYSCALL_DEFINE4(rt_sigaction, int, sig, const struct compat_sigaction __user *, act, struct compat_sigaction __user *, oact, compat_size_t, sigsetsize)

返回类型:

参数:

4265  如果sigsetsize不等于sizeof(compat_sigset_t)则返回:负EINVAL
4268  如果act
4270  ret等于Careful: we have to cast the result to the type of the pointer* for sign reasons(handler, & sa_handler)
4271  sa_handler等于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.
4273  ret或等于Careful: we have to cast the result to the type of the pointer* for sign reasons(restorer, & sa_restorer)
4274  sa_restorer等于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.
4276  ret或等于get_compat_sigset( & mask last for extensibility , & sa_mask)
4277  ret或等于Careful: we have to cast the result to the type of the pointer* for sign reasons(sa_flags, & sa_flags)
4278  如果ret则返回:负EFAULT
4282  ret等于信号处理
4283  如果非retoact
4284  ret等于put_user - Write a simple value into user space(ptr_to_compat(sa_handler), & sa_handler)
4286  ret或等于Defined inline such that size can be compile time constant, which avoids* CONFIG_HARDENED_USERCOPY complaining about copies from task_struct
4288  ret或等于put_user - Write a simple value into user space(sa_flags, & sa_flags)
4290  ret或等于put_user - Write a simple value into user space(ptr_to_compat(sa_restorer), & sa_restorer)
4294  返回:ret