Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:workqueue_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

Proto:int __init workqueue_init(void)

Type:int

Parameter:Nothing

5994  wq_numa_init()
5996  mutex_lock( & wq_pool_mutex)
5998  for_each_possible_cpu(cpu)
6000  I: the associated node ID = cpu_to_node(cpu)
6005  wq_update_unbound_numa - update NUMA affinity of a wq for CPU hot[un]plug*@wq: the target workqueue*@cpu: the CPU coming up or going down*@online: whether @cpu is coming up or going down* This function is to be called from %CPU_DOWN_PREPARE, %CPU_ONLINE
6006  WARN(Workqueues which may be used during memory reclaim should have a rescuer* to guarantee forward progress., "workqueue: failed to create early rescuer for %s", I: workqueue name )
6011  mutex_unlock( & wq_pool_mutex)
6014  for_each_online_cpu(cpu)
6016  X: flags &= ~POOL_DISASSOCIATED
6017  BUG_ON(!reate_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.)
6021  hash_for_each - iterate over a hashtable*@name: hashtable to iterate*@bkt: integer to use as bucket loop cursor*@obj: the type * to use as a loop cursor for each entry*@member: the name of the hlist_node within the struct(PL: hash of all unbound pools keyed by pool->attrs , bkt, pool, hash_node)
6022  BUG_ON(!reate_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.)
6024  can kworkers be created yet? = true
6025  Workqueue watchdog
6027  Return 0