Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\compat.h Create Date:2022-07-28 05:47:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:arch_compat_alloc_user_space

Proto:static inline void __user *arch_compat_alloc_user_space(long len)

Type:void

Parameter:

TypeParameterName
longlen
201  If test_thread_flag(IA32 compatibility process ) Then
202  sp = ({
202  __ptr = stack
202  __ptr += ( 1UL << 12 << 2 + 1 ) - 8
202  __ptr - 1
202  })->sp
203  Else
205  sp = ({
205  __ptr = stack
205  __ptr += ( 1UL << 12 << 2 + 1 ) - 8
205  __ptr - 1
205  })->sp - 128
208  Return 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)
Caller
NameDescribe
compat_alloc_user_spaceAllocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.