Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kthread_park - park a thread created by kthread_create()

Proto:int kthread_park(struct task_struct *k)

Type:int

Parameter:

TypeParameterName
struct task_struct *k
505  kthread = to_kthread(k)
507  If WARN_ON( Per task flags (PF_*), defined further below: & Getting shut down ) Then Return -ENOSYS
510  If WARN_ON_ONCE(st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from) Then Return -EBUSY
513  Atomically set a bit in memory
514  If k != current process Then
515  wake_up_process(k)
520  wait_for_completion( & parked)
525  WARN_ON_ONCE(!wait_task_inactive(k, Used in tsk->state again: ))
528  Return 0
Caller
NameDescribe
__smpboot_create_thread
smpboot_park_thread
stop_machine_park