函数逻辑报告 |
Source Code:kernel\kthread.c |
Create Date:2022-07-27 10:30:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kthread_worker_fn - kthread function to process kthread_worker*@worker_ptr: pointer to initialized kthread_worker* This function implements the main cycle of kthread worker. It processes* work_list until it is stopped with kthread_stop()
函数原型:int kthread_worker_fn(void *worker_ptr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | worker_ptr |
635 | worker等于worker_ptr |
645 | 如果flags按位与KTW_FREEZABLE则set_freezable() |
648 | repeat : |
649 | set_current_state(睡眠态) |
654 | task = NULL |
655 | raw_spin_unlock_irq( & lock) |
656 | 返回:0 |
659 | work = NULL |
661 | 如果非链表为空则 |
664 | 删除链表项并重新初始化 |
666 | current_work等于work |
667 | raw_spin_unlock_irq( & lock) |
669 | 如果work则 |
675 | try_to_freeze() |
676 | cond_resched() |
677 | 转到:repeat |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |