函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-27 18:47:41
Last Modify:2020-03-17 23:18:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_mq_poll_hybrid

函数原型:static bool blk_mq_poll_hybrid(struct request_queue *q, struct blk_mq_hw_ctx *hctx, blk_qc_t cookie)

返回类型:bool

参数:

类型参数名称
struct request_queue *q
struct blk_mq_hw_ctx *hctx
blk_qc_tcookie
3434  如果poll_nsec恒等于Doing classic polling 则返回:false
3437  如果非blk_qc_t_is_internal(cookie)则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  否则
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  如果非rq则返回:false
3451  返回:blk_mq_poll_hybrid_sleep(q, hctx, rq)
调用者
名称描述
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