函数逻辑报告 | 
Source Code:mm\backing-dev.c | 
Create Date:2022-07-27 15:48:51 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:wait_iff_congested - Conditionally wait for a backing_dev to become uncongested or a pgdat to complete writes*@sync: SYNC or ASYNC IO*@timeout: timeout in jiffies* In the event of a congested backing_dev (any backing_dev) this waits* for up to @timeout
函数原型:long wait_iff_congested(int sync, long timeout)
返回类型:long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| int | sync | |
| long | timeout | 
| 1120 | DEFINE_WAIT(wait) | 
| 1121 | wqh等于congestion_wqh[sync] | 
| 1127 | 如果atomic_read( & nr_wb_congested[sync])恒等于0则 | 
| 1140 | ret等于This task is about to go to sleep on IO. Increment rq->nr_iowait so* that process accounting knows that this is a task in IO wait state. | 
| 1143 | out : | 
| 1144 | trace_writeback_wait_iff_congested(jiffies_to_usecs(timeout), jiffies_to_usecs(jiffies - start)) | 
| 1147 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| shrink_node | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |