函数逻辑报告 |
Source Code:block\blk-mq.c |
Create Date:2022-07-27 18:47:45 |
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lk_poll - poll for IO completions*@q: the queue*@cookie: cookie passed back at IO submission time*@spin: whether to spin for completions* Description:* Poll for completions on the passed in queue. Returns number of* completed entries found
函数原型:int blk_poll(struct request_queue *q, blk_qc_t cookie, bool spin)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request_queue * | q | |
| blk_qc_t | cookie | |
| bool | spin |
| 3471 | 如果非blk_qc_t_valid(cookie)或非test_bit(IO polling enabled if set , & * various queue flags, see QUEUE_* below)则返回:0 |
| 3478 | hctx等于 hw dispatch queues [blk_qc_t_to_queue_num(cookie)] |
| 3487 | 如果blk_mq_poll_hybrid(q, hctx, cookie)则返回:1 |
| 3493 | 循环 |
| 3499 | 如果ret大于0则 |
| 3502 | 返回:ret |
| 3512 | cpu_relax() |
| 3513 | 当非need_resched()循环 |
| 3516 | 返回:0 |
| 名称 | 描述 |
|---|---|
| blkdev_iopoll | |
| __blkdev_direct_IO | |
| dio_await_one | Wait for the next BIO to complete. Remove it and return it. NULL is* returned once all BIOs have been completed. This must only be called once* all bios have been issued so that dio->refcount can only decrease. This |
| iomap_dio_iopoll | |
| iomap_dio_rw | map_dio_rw() always completes O_[D]SYNC writes regardless of whether the IO* is being issued as AIO or not. This allows us to optimise pure data writes* to use REQ_FUA rather than requiring generic_write_sync() to issue a* REQ_FLUSH post write |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |