函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void __user *compat_alloc_user_space(unsigned long len)

返回类型:void

参数:

类型参数名称
unsigned longlen
343  __userptr
346  如果此条件成立可能性小(为编译器优化)(len > (((compat_uptr_t)~0) >> 1))则返回:NULL
349  ptr等于arch_compat_alloc_user_space(len)
351  如果此条件成立可能性小(为编译器优化)(!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))则返回:NULL
354  返回:ptr
调用者
名称描述
COMPAT_SYSCALL_DEFINE3
COMPAT_SYSCALL_DEFINE6
COMPAT_SYSCALL_DEFINE4
compat_cdrom_read_audio
compat_cdrom_generic_command
compat_blkpg_ioctl
COMPAT_SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE4
COMPAT_SYSCALL_DEFINE5
compat_hdio_ioctl