函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\uaccess.h Create Date:2022-07-27 06:58:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_in_user

函数原型:static __always_inline unsigned long __must_check copy_in_user(void __user *to, const void __user *from, unsigned long n)

返回类型:unsigned long

参数:

类型参数名称
void __user *to
const void __user *from
unsigned longn
159  might_fault()
160  如果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.(to, n)且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.(from, n)则n等于raw_copy_in_user(to, from, n)
162  返回:n
调用者
名称描述
compat_cdrom_read_audio
compat_cdrom_generic_command
COMPAT_SYSCALL_DEFINE4