Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__compat_put_timespec

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

Type:int

Parameter:

TypeParameterName
const struct timespec *ts
struct old_timespec32 __user *cts
52  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 ) || Write a simple value into user space, with less checking( seconds , & tv_sec) || Write a simple value into user space, with less checking( nanoseconds , & tv_nsec) Then -EFAULT Else 0
Caller
NameDescribe
compat_put_timespec