Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_worker

Proto:static struct worker *alloc_worker(int node)

Type:struct worker

Parameter:

TypeParameterName
intnode
1815  worker = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
1816  If worker Then
1817  Initialization list head
1818  Initialization list head
1819  Initialization list head
1821  X: flags = WORKER_PREP
1823  Return worker
Caller
NameDescribe
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.