函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:plug_rq_cmp

函数原型:static int plug_rq_cmp(void *priv, struct list_head *a, struct list_head *b)

返回类型:int

参数:

类型参数名称
void *priv
struct list_head *a
struct list_head *b
1668  rqa等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(a, structrequest, queuelist)
1669  rqb等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(b, structrequest, queuelist)
1671  如果mq_ctx小于mq_ctx则返回:负1
1673  否则如果mq_ctx大于mq_ctx则返回:1
1675  否则如果mq_hctx小于mq_hctx则返回:负1
1677  否则如果mq_hctx大于mq_hctx则返回:1
1680  返回:lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire 大于lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire