函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\compat.c Create Date:2022-07-27 12:07:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:We currently only need the following fields from the sigevent* structure: sigev_value, sigev_signo, sig_notify and (sometimes* sigev_notify_thread_id). The others are handled in user mode.* We also assume that copying sigev_value.sival_int is sufficient

函数原型:int get_compat_sigevent(struct sigevent *event, const struct compat_sigevent __user *u_event)

返回类型:int

参数:

类型参数名称
struct sigevent *event
const struct compat_sigevent __user *u_event
246  memset(event, 0, event的长度)
247  返回:如果非access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(u_event, u_event的长度)或__get_user - Get a simple variable from user space, with less checking(sival_int, & sival_int)或__get_user - Get a simple variable from user space, with less checking(sigev_signo, & sigev_signo)或__get_user - Get a simple variable from user space, with less checking(sigev_notify, & sigev_notify)或__get_user - Get a simple variable from user space, with less checking(sigev_notify_thread_id, & sigev_notify_thread_id)则负EFAULT否则0
调用者
名称描述
COMPAT_SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE2