函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_worker

函数原型:static struct worker *alloc_worker(int node)

返回类型:struct worker

参数:

类型参数名称
intnode
1815  worker等于根据内存节点分配内存
1816  如果worker
1817  初始化链表头
1818  初始化链表头
1819  初始化链表头
1821  X: flags 等于WORKER_PREP
1823  返回:worker
调用者
名称描述
create_workerreate_worker - create a new workqueue worker*@pool: pool the new worker will belong to* Create and start a new worker which is attached to @pool.* CONTEXT:* Might sleep. Does GFP_KERNEL allocations.* Return:* Pointer to the newly created worker.
init_rescuerWorkqueues which may be used during memory reclaim should have a rescuer* to guarantee forward progress.