Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| compat_ulong_t __user * | user_mask_ptr | |
| unsigned | len | |
| 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) |
| Name | Describe |
|---|---|
| COMPAT_SYSCALL_DEFINE3 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |