Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:28:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:show_workqueue_state - dump workqueue state* Called from a sysrq handler or try_to_freeze_tasks() and prints out* all busy workqueues and pools.
Proto:void show_workqueue_state(void)
Type:void
Parameter:Nothing
4749 | pr_info("Showing busy workqueues and worker pools:\n") |
4753 | bool idle = true |
4757 | idle = false |
4758 | Break |
4761 | If idle Then Continue |
4764 | pr_info("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 | If L: nr of active works || Not list_empty - tests whether a list is empty*@head: the list to test. Then show_pwq(pwq) |
4770 | spin_unlock_irqrestore( & he pool lock , flags) |
4782 | bool first = true |
4784 | spin_lock_irqsave( & he pool lock , flags) |
4785 | If L: total number of workers == L: currently idle workers Then Go to next_pool |
4788 | pr_info("pool %d:", I: pool ID ) |
4789 | pr_cont_pool_info(pool) |
4799 | first = false |
4802 | next_pool : |
4803 | spin_unlock_irqrestore( & he pool lock , flags) |
Name | Describe |
---|---|
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 |
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 |