Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:12:24 |
Last Modify:2020-03-17 23:18:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int blk_poll(struct request_queue *q, blk_qc_t cookie, bool spin)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
blk_qc_t | cookie | |
bool | spin |
3471 | If Not blk_qc_t_valid(cookie) || Not Determine whether a bit is set(IO polling enabled if set , & * various queue flags, see QUEUE_* below) Then Return 0 |
3475 | If plug Then blk_flush_plug_list(plug, false) |
3478 | hctx = hw dispatch queues [blk_qc_t_to_queue_num(cookie)] |
3487 | If blk_mq_poll_hybrid(q, hctx, cookie) Then Return 1 |
3493 | Do |
3499 | If ret > 0 Then |
3502 | Return ret |
3508 | If state == Used in tsk->state: Then Return 1 |
3512 | cpu_relax() |
3513 | When Not need_resched() cycle |
3516 | Return 0 |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |