Function report | 
Source Code:kernel\workqueue.c | 
Create Date:2022-07-28 09:27:36 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:wq_clamp_max_active
Proto:static int wq_clamp_max_active(int max_active, unsigned int flags, const char *name)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | max_active | |
| unsigned int | flags | |
| const char * | name | 
| 4180 | lim = If flags & WQ_UNBOUND Then unbound wq's aren't per-cpu, scale max_active according to #cpus Else WQ_MAX_ACTIVE | 
| 4182 | If max_active < 1 || max_active > lim Then pr_warn("workqueue: max_active %d requested for %s is out of range, clamping between %d and %d\n", max_active, name, 1, lim) | 
| Name | Describe | 
|---|---|
| alloc_workqueue | |
| workqueue_set_max_active | 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. | 
| 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  |