函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\compat.c Create Date:2022-07-27 12:07:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:COMPAT_SYSCALL_DEFINE3

函数原型:COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len, compat_ulong_t __user *, user_mask_ptr)

返回类型:

参数:

214  如果lenBITS_PER_BYTE小于CPU数量则返回:负EINVAL
216  如果len按位与sizeof(compat_ulong_t)减1则返回:负EINVAL
219  如果非分配CPU掩码则返回:负ENOMEM
222  ret等于sched_getaffinity(pid, mask)
223  如果ret恒等于0则
224  retlen等于两数取小(len, CPU信息的大小)
226  如果compat_put_bitmap(user_mask_ptr, 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.(mask), retlen * 8)则ret等于负EFAULT
228  否则ret等于retlen
231  释放CPU掩码
233  返回:ret