Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compat_get_user_cpu_mask

Proto:static int compat_get_user_cpu_mask(compat_ulong_t __user *user_mask_ptr, unsigned len, struct cpumask *new_mask)

Type:int

Parameter:

TypeParameterName
compat_ulong_t __user *user_mask_ptr
unsignedlen
struct cpumask *new_mask
179  If len < pumask_size - size to allocate for a 'struct cpumask' in bytes Then memset(new_mask, 0, pumask_size - size to allocate for a 'struct cpumask' in bytes)
181  Else if len > pumask_size - size to allocate for a 'struct cpumask' in bytes Then len = pumask_size - size to allocate for a 'struct cpumask' in bytes
184  k = cpumask_bits - get the bits in a cpumask*@maskp: the struct cpumask ** You should only assume nr_cpu_ids bits of this mask are valid. This is* a macro so it's const-correct.(new_mask)
185  Return compat_get_bitmap(k, user_mask_ptr, len * 8)
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE3