Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:plug_rq_cmp

Proto:static int plug_rq_cmp(void *priv, struct list_head *a, struct list_head *b)

Type:int

Parameter:

TypeParameterName
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  If mq_ctx < mq_ctx Then Return -1
1673  Else if mq_ctx > mq_ctx Then Return 1
1675  Else if mq_hctx < mq_hctx Then Return -1
1677  Else if mq_hctx > mq_hctx Then Return 1
1680  Return 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