函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:37:24
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_user_cpu_mask

函数原型:static int get_user_cpu_mask(unsigned long __user *user_mask_ptr, unsigned len, struct cpumask *new_mask)

返回类型:int

参数:

类型参数名称
unsigned long __user *user_mask_ptr
unsignedlen
struct cpumask *new_mask
5492  如果len小于CPU信息的大小清空全部CPU信息
5494  否则如果len大于CPU信息的大小len等于CPU信息的大小
5497  返回:如果copy_from_user(new_mask, user_mask_ptr, len)则负EFAULT否则0
调用者
名称描述
SYSCALL_DEFINE3sys_sched_setaffinity - set the CPU affinity of a process*@pid: pid of the process*@len: length in bytes of the bitmask pointed to by user_mask_ptr*@user_mask_ptr: user-space pointer to the new CPU mask* Return: 0 on success. An error code otherwise.