函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_compat_alloc_user_space

函数原型:static inline void __user *arch_compat_alloc_user_space(long len)

返回类型:void

参数:

类型参数名称
longlen
201  如果test_thread_flag(IA32 compatibility process )则
202  sp = ({
202  __ptr等于stack
202  __ptr加等于1UL左移12位左移2加1位的值减8
202  __ptr减1
202  })->sp
203  否则
205  sp = ({
205  __ptr等于stack
205  __ptr加等于1UL左移12位左移2加1位的值减8
205  __ptr减1
205  })->sp - 128
208  返回:und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(sp - len, 16)
调用者
名称描述
compat_alloc_user_spaceAllocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.