函数逻辑报告 |
Source Code:kernel\locking\test-ww_mutex.c |
Create Date:2022-07-27 10:55:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:stress_reorder_work
函数原型:static void stress_reorder_work(struct work_struct *work)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct work_struct * | work |
| 446 | order等于get_random_order(nlocks) |
| 447 | 如果非order则返回 |
| 458 | 释放内存 |
| 459 | order = NULL |
| 461 | 循环 |
| 465 | err等于ww_mutex_lock(lock, & ctx) |
| 466 | 如果非err则继续下一循环 |
| 470 | list_for_each_entry_continue_reverse - iterate backwards from the given point*@pos: the type * to use as a loop cursor(ln, & locks, link) |
| 474 | pr_err_once("stress (%s) failed with %d\n", __func__, err) |
| 476 | 退出 |
| 480 | 链表项移动到头部 |
| 483 | dummy_load(stress) |
| 490 | out : |
| 492 | 释放内存 |
| 493 | 释放内存 |
| 494 | 释放内存 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |