Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kthread.c Create Date:2022-07-28 09:30:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__kthread_bind_mask

Proto:static void __kthread_bind_mask(struct task_struct *p, const struct cpumask *mask, long state)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
const struct cpumask *mask
longstate
399  If Not wait_task_inactive(p, state) Then
400  WARN_ON(1)
401  Return
405  raw_spin_lock_irqsave( & Protection of the PI data structures: , flags)
406  do_set_cpus_allowed(p, mask)
407  Per task flags (PF_*), defined further below: |= Userland is not allowed to meddle with cpus_mask
408  raw_spin_unlock_irqrestore( & Protection of the PI data structures: , flags)
Caller
NameDescribe
__kthread_bind
kthread_bind_mask