Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\compat.c Create Date:2022-07-28 11:05:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int get_compat_sigevent(struct sigevent *event, const struct compat_sigevent __user *u_event)

Type:int

Parameter:

TypeParameterName
struct sigevent *event
const struct compat_sigevent __user *u_event
246  memset(event, 0, size of event )
247  Return If Not 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, size of u_event ) || Get a simple variable from user space, with less checking(sival_int, & sival_int) || Get a simple variable from user space, with less checking(sigev_signo, & sigev_signo) || Get a simple variable from user space, with less checking(sigev_notify, & sigev_notify) || Get a simple variable from user space, with less checking(sigev_notify_thread_id, & sigev_notify_thread_id) Then -EFAULT Else 0