函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__kthread_bind_mask

函数原型:static void __kthread_bind_mask(struct task_struct *p, const struct cpumask *mask, long state)

返回类型:void

参数:

类型参数名称
struct task_struct *p
const struct cpumask *mask
longstate
399  如果非wait_task_inactive(p, state)则
400  WARN_ON(1)
401  返回
405  raw_spin_lock_irqsave( & Protection of the PI data structures: , flags)
406  do_set_cpus_allowed(p, mask)
407  任务标志或等于Userland is not allowed to meddle with cpus_mask
408  raw_spin_unlock_irqrestore( & Protection of the PI data structures: , flags)
调用者
名称描述
__kthread_bind
kthread_bind_mask