函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__compat_get_timespec

函数原型:static int __compat_get_timespec(struct timespec *ts, const struct old_timespec32 __user *cts)

返回类型:int

参数:

类型参数名称
struct timespec *ts
const struct old_timespec32 __user *cts
45  返回:如果非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, cts的长度)或__get_user - Get a simple variable from user space, with less checking( seconds , & tv_sec)或__get_user - Get a simple variable from user space, with less checking( nanoseconds , & tv_nsec)则负EFAULT否则0
调用者
名称描述
compat_get_timespec