Function report |
Source Code:kernel\compat.c |
Create Date:2022-07-28 11:05:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:COMPAT_SYSCALL_DEFINE3
Proto:COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len, compat_ulong_t __user *, user_mask_ptr)
Type:
Parameter:Nothing
214 | If len * BITS_PER_BYTE < Setup number of possible processor ids Then Return -EINVAL |
216 | If len & sizeof(compat_ulong_t) - 1 Then Return -EINVAL |
219 | If Not alloc_cpumask_var( & mask, GFP_KERNEL) Then Return -ENOMEM |
222 | ret = sched_getaffinity(pid, mask) |
223 | If ret == 0 Then |
224 | retlen = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, pumask_size - size to allocate for a 'struct cpumask' in bytes) |
231 | free_cpumask_var(mask) |
233 | Return ret |
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 |