函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Workqueues which may be used during memory reclaim should have a rescuer* to guarantee forward progress.

函数原型:static int init_rescuer(struct workqueue_struct *wq)

返回类型:int

参数:

类型参数名称
struct workqueue_struct *wq
4198  如果非hot fields used during command issue, aligned to cacheline 按位与WQ_MEM_RECLAIM的值则返回:0
4201  rescuer等于alloc_worker(NUMA_NO_NODE)
4202  如果非rescuer则返回:负ENOMEM
4205  I: the workqueue to rescue 等于wq
4206  I: worker task 等于kthread_create - create a kthread on the current node*@threadfn: the function to run in the thread*@data: data pointer for @threadfn()*@namefmt: printf-style format string for the thread name*@arg(scuer_thread - the rescuer thread function*@__rescuer: self* Workqueue rescuer thread function, rescuer, "%s", I: workqueue name )
4207  ret等于PTR_ERR_OR_ZERO(I: worker task )
4208  如果ret
4209  释放内存
4210  返回:ret
4213  MD: rescue worker 等于rescuer
4214  kthread_bind_mask(I: worker task , cpu_possible_mask)
4215  唤醒中断线程
4217  返回:0
调用者
名称描述
alloc_workqueue
workqueue_initworkqueue_init - bring workqueue subsystem fully online* This is the latter half of two-staged workqueue subsystem initialization* and invoked as soon as kthreads can be created and scheduled