函数逻辑报告 |
Source Code:block\mq-deadline.c |
Create Date:2022-07-27 19:26:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:For the specified data direction, return the next request to* dispatch using arrival ordered lists.
函数原型:static struct request *deadline_fifo_request(struct deadline_data *dd, int data_dir)
返回类型:struct request
参数:
类型 | 参数 | 名称 |
---|---|---|
struct deadline_data * | dd | |
int | data_dir |
206 | 如果WARN_ON_ONCE(data_dir != generic data direction definitions && data_dir != WRITE)则返回:NULL |
209 | 如果链表为空则返回:NULL |
212 | rq等于rq_entry_fifo(链表后项) |
213 | 如果data_dir恒等于generic data direction definitions 或非blk_queue_is_zoned(q)则返回:rq |
220 | spin_lock_irqsave( & zone_lock, flags) |
222 | 如果blk_req_can_dispatch_to_zone(rq)则转到:out |
225 | rq = NULL |
226 | out : |
227 | spin_unlock_irqrestore( & zone_lock, flags) |
229 | 返回:rq |
名称 | 描述 |
---|---|
__dd_dispatch_request | deadline_dispatch_requests selects the best request according to* read/write expire, fifo_batch, etc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |