Function report | 
Source Code:kernel\workqueue.c | 
Create Date:2022-07-28 09:27:48 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:workqueue_set_max_active - adjust max_active of a workqueue*@wq: target workqueue*@max_active: new max_active value.* Set max_active of @wq to @max_active.* CONTEXT:* Don't call from IRQ context.
Proto:void workqueue_set_max_active(struct workqueue_struct *wq, int max_active)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct workqueue_struct * | wq | |
| int | max_active | 
| 4444 | If WARN_ON(hot fields used during command issue, aligned to cacheline & __WQ_ORDERED_EXPLICIT) Then Return | 
| 4447 | max_active = wq_clamp_max_active(max_active, hot fields used during command issue, aligned to cacheline , I: workqueue name ) | 
| 4449 | mutex_lock( & protects this wq ) | 
| 4457 | mutex_unlock( & protects this wq ) | 
| 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  |