函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:28:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:show_workqueue_state - dump workqueue state* Called from a sysrq handler or try_to_freeze_tasks() and prints out* all busy workqueues and pools.
函数原型:void show_workqueue_state(void)
返回类型:void
参数:无
4749 | 打印信息("Showing busy workqueues and worker pools:\n") |
4753 | bool idle = true |
4756 | 如果L: nr of active works 或非链表为空则 |
4761 | 如果idle则继续下一循环 |
4764 | 打印信息("workqueue %s: flags=0x%x\n", I: workqueue name , hot fields used during command issue, aligned to cacheline ) |
4767 | spin_lock_irqsave( & he pool lock , flags) |
4768 | 如果L: nr of active works 或非链表为空则show_pwq(pwq) |
4770 | spin_unlock_irqrestore( & he pool lock , flags) |
4782 | bool first = true |
4784 | spin_lock_irqsave( & he pool lock , flags) |
4785 | 如果L: total number of workers 恒等于L: currently idle workers 则转到:next_pool |
4788 | 打印信息("pool %d:", I: pool ID ) |
4789 | pr_cont_pool_info(pool) |
4790 | 打印标准信息(" hung=%us workers=%d", Convert various time units to each other: / 1000, L: total number of workers ) |
4793 | 如果L: purely informational 则打印标准信息(" manager: %d", task_pid_nr(I: worker task )) |
4797 | 打印标准信息(" %s%d", first ? "idle: " : "", task_pid_nr(I: worker task )) |
4799 | first = false |
4801 | 打印标准信息("\n") |
4802 | next_pool : |
4803 | spin_unlock_irqrestore( & he pool lock , flags) |
名称 | 描述 |
---|---|
destroy_workqueue | destroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first. |
try_to_freeze_tasks |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |