Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.

Proto:void __user *compat_alloc_user_space(unsigned long len)

Type:void

Parameter:

TypeParameterName
unsigned longlen
343  __user * ptr
346  If Value for the false possibility is greater at compile time(len > (((compat_uptr_t)~0) >> 1)) Then Return NULL
349  ptr = arch_compat_alloc_user_space(len)
351  If Value for the false possibility is greater at compile time(!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.(ptr, len)) Then Return NULL
354  Return ptr
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE6
COMPAT_SYSCALL_DEFINE4
compat_cdrom_read_audio
compat_cdrom_generic_command
compat_blkpg_ioctl
COMPAT_SYSCALL_DEFINE4