函数逻辑报告 |
Source Code:fs\io_uring.c |
Create Date:2022-07-29 10:54:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Returns true if there are no backlogged entries after the flush
函数原型:static bool io_cqring_overflow_flush(struct io_ring_ctx *ctx, bool force)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct io_ring_ctx * | ctx | |
| bool | force |
| 772 | 如果非force则 |
| 773 | 如果链表为空且不修改则返回:true |
| 775 | 如果cached_cq_tail减READ_ONCE(head)恒等于Ring sizes (constant, power of 2) 则返回:false |
| 780 | spin_lock_irqsave( & completion_lock, flags) |
| 783 | 如果force则cq_overflow_flushed = true |
| 786 | cqe = NULL |
| 788 | cqe等于io_get_cqring(ctx) |
| 794 | 链表项移动到头部 |
| 795 | 如果cqe则 |
| 798 | WRITE_ONCE(flags, 0) |
| 799 | 否则 |
| 805 | io_commit_cqring(ctx) |
| 806 | spin_unlock_irqrestore( & completion_lock, flags) |
| 807 | io_cqring_ev_posted(ctx) |
| 811 | 删除链表项 |
| 812 | io_put_req(req) |
| 815 | 返回:cqe != NULL |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |