Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:12:21
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_poll_hybrid

Proto:static bool blk_mq_poll_hybrid(struct request_queue *q, struct blk_mq_hw_ctx *hctx, blk_qc_t cookie)

Type:bool

Parameter:

TypeParameterName
struct request_queue *q
struct blk_mq_hw_ctx *hctx
blk_qc_tcookie
3434  If poll_nsec == Doing classic polling Then Return false
3437  If Not blk_qc_t_is_internal(cookie) Then rq = blk_mq_tag_to_rq(@tags: Tags owned by the block driver. A tag at this set is only* assigned when a request is dispatched from a hardware queue., blk_qc_t_to_tag(cookie))
3439  Else
3440  rq = blk_mq_tag_to_rq(@sched_tags: Tags owned by I/O scheduler. If there is an I/O* scheduler associated with a request queue, a tag is assigned when* that request is allocated. Else, this member is not used., blk_qc_t_to_tag(cookie))
3447  If Not rq Then Return false
3451  Return blk_mq_poll_hybrid_sleep(q, hctx, rq)
Caller
NameDescribe
blk_polllk_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