函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kthread_park - park a thread created by kthread_create()

函数原型:int kthread_park(struct task_struct *k)

返回类型:int

参数:

类型参数名称
struct task_struct *k
505  kthread等于to_kthread(k)
507  如果WARN_ON(任务标志 & Getting shut down )则返回:负ENOSYS
510  如果WARN_ON_ONCE(st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from)则返回:负EBUSY
513  设置内存位
514  如果k不等于当前进程
515  唤醒中断线程
520  wait_for_completion( & parked)
525  WARN_ON_ONCE(!wait_task_inactive(k, Used in tsk->state again: ))
528  返回:0
调用者
名称描述
__smpboot_create_thread
smpboot_park_thread
stop_machine_park
io_sq_thread_stop