Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__compat_get_timeval

Proto:static int __compat_get_timeval(struct timeval *tv, const struct old_timeval32 __user *ctv)

Type:int

Parameter:

TypeParameterName
struct timeval *tv
const struct old_timeval32 __user *ctv
31  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.(ctv, size of ctv ) || Get a simple variable from user space, with less checking( seconds , & tv_sec) || Get a simple variable from user space, with less checking( microseconds , & tv_usec) Then -EFAULT Else 0
Caller
NameDescribe
compat_get_timeval