Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__compat_get_timespec

Proto:static int __compat_get_timespec(struct timespec *ts, const struct old_timespec32 __user *cts)

Type:int

Parameter:

TypeParameterName
struct timespec *ts
const struct old_timespec32 __user *cts
45  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.(cts, size of cts ) || Get a simple variable from user space, with less checking( seconds , & tv_sec) || Get a simple variable from user space, with less checking( nanoseconds , & tv_nsec) Then -EFAULT Else 0
Caller
NameDescribe
compat_get_timespec