函数逻辑报告 |
Source Code:kernel\workqueue.c |
Create Date:2022-07-27 10:27:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:worker_thread
函数原型:static int worker_thread(void *__worker)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | __worker |
2355 | pool等于A: the associated pool |
2358 | set_pf_worker(true) |
2359 | woke_up : |
2360 | spin_lock_irq( & he pool lock ) |
2363 | 如果此条件成立可能性小(为编译器优化)(X: flags & WORKER_DIE)则 |
2364 | spin_unlock_irq( & he pool lock ) |
2365 | WARN_ON_ONCE(!链表为空) |
2366 | set_pf_worker(false) |
2368 | set_task_comm(I: worker task , "kworker/dying") |
2369 | ida_simple_remove( & worker IDs for task name , I: worker id ) |
2371 | 释放内存 |
2372 | 返回:0 |
2376 | recheck : |
2390 | WARN_ON_ONCE(!链表为空) |
2401 | 循环 |
2406 | L: watchdog timestamp 等于jiffies |
2413 | 否则 |
2420 | sleep : |
2430 | spin_unlock_irq( & he pool lock ) |
2431 | schedule() |
2432 | 转到:woke_up |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |