函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:27:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:scuer_thread - the rescuer thread function*@__rescuer: self* Workqueue rescuer thread function
函数原型:static int rescuer_thread(void *__rescuer)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | __rescuer |
2459 | wq等于I: the workqueue to rescue |
2460 | scheduled等于L: scheduled works |
2463 | set_user_nice(当前进程, RESCUER_NICE_LEVEL) |
2469 | set_pf_worker(true) |
2470 | repeat : |
2471 | set_current_state(TASK_IDLE) |
2481 | should_stop等于kthread_should_stop() |
2484 | spin_lock_irq( & wq_mayday_lock) |
2489 | pool等于I: the associated pool |
2491 | bool first = true |
2494 | 删除链表项并重新初始化 |
2496 | spin_unlock_irq( & wq_mayday_lock) |
2500 | spin_lock_irq( & he pool lock ) |
2506 | WARN_ON_ONCE(!链表为空) |
2508 | 如果get_work_pwq(work)恒等于pwq则 |
2509 | 如果first则L: watchdog timestamp 等于jiffies |
2513 | first = false |
2516 | 如果非链表为空则 |
2556 | spin_unlock_irq( & he pool lock ) |
2560 | spin_lock_irq( & wq_mayday_lock) |
2563 | spin_unlock_irq( & wq_mayday_lock) |
2565 | 如果should_stop则 |
2567 | set_pf_worker(false) |
2568 | 返回:0 |
2572 | WARN_ON_ONCE(!(X: flags & WORKER_NOT_RUNNING)) |
2573 | schedule() |
2574 | 转到:repeat |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |