Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\uaccess.h Create Date:2022-07-28 05:59:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_in_user

Proto:static __always_inline unsigned long __must_check copy_in_user(void __user *to, const void __user *from, unsigned long n)

Type:unsigned long

Parameter:

TypeParameterName
void __user *to
const void __user *from
unsigned longn
159  might_fault()
160  If 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) Then n = raw_copy_in_user(to, from, n)
162  Return n
Caller
NameDescribe
compat_cdrom_read_audio
compat_cdrom_generic_command
COMPAT_SYSCALL_DEFINE4