Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:27:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static void wq_update_unbound_numa(struct workqueue_struct *wq, int cpu, bool online)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct workqueue_struct * | wq | |
| int | cpu | |
| bool | online |
| 4077 | node = cpu_to_node(cpu) |
| 4083 | lockdep_assert_held( & wq_pool_mutex) |
| 4095 | cpumask = @cpumask: allowed CPUs |
| 4107 | If pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then Return |
| 4109 | Else |
| 4110 | Go to use_dfl_pwq |
| 4115 | If Not pwq Then |
| 4116 | pr_warn("workqueue: allocation failed while updating NUMA affinity of \"%s\"\n", I: workqueue name ) |
| 4118 | Go to use_dfl_pwq |
| 4122 | mutex_lock( & protects this wq ) |
| 4124 | Go to out_unlock |
| 4126 | use_dfl_pwq : |
| 4127 | mutex_lock( & protects this wq ) |
| 4128 | spin_lock_irq( & he pool lock ) |
| 4130 | spin_unlock_irq( & he pool lock ) |
| 4132 | out_unlock : |
| 4133 | mutex_unlock( & protects this wq ) |
| Name | Describe |
|---|---|
| workqueue_init | 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |