函数逻辑报告

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_put_timeval

函数原型:static int __compat_put_timeval(const struct timeval *tv, struct old_timeval32 __user *ctv)

返回类型:int

参数:

类型参数名称
const struct timeval *tv
struct old_timeval32 __user *ctv
38  返回:如果非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, ctv的长度)或__put_user - Write a simple value into user space, with less checking( seconds , & tv_sec)或__put_user - Write a simple value into user space, with less checking( microseconds , & tv_usec)则负EFAULT否则0
调用者
名称描述
compat_put_timeval