Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-28 17:00:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lk_rq_err_bytes - determine number of bytes till the next failure boundary*@rq: request to examine* Description:* A request could be merge of IOs which require different failure* handling

Proto:unsigned int blk_rq_err_bytes(const struct request *rq)

Type:unsigned int

Parameter:

TypeParameterName
const struct request *rq
1288  ff = op and common flags & REQ_FAILFAST_MASK
1289  bytes = 0
1292  If Not (rq_flags & merge of different types, fail separately ) Then Return blk_rq_bytes(rq)
1302  When bio cycle
1303  If ( bottom bits req flags, * top bits REQ_OP. Use * accessors. & ff) != ff Then Break
1305  bytes += residual I/O count
1309  BUG_ON(blk_rq_bytes(rq) && !bytes)
1310  Return bytes