函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:27:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:wq_clamp_max_active
函数原型:static int wq_clamp_max_active(int max_active, unsigned int flags, const char *name)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | max_active | |
unsigned int | flags | |
const char * | name |
4180 | lim等于如果flags按位与WQ_UNBOUND则unbound wq's aren't per-cpu, scale max_active according to #cpus 否则WQ_MAX_ACTIVE |
4182 | 如果max_active小于1或max_active大于lim则打印警告信息("workqueue: max_active %d requested for %s is out of range, clamping between %d and %d\n", max_active, name, 1, lim) |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |