函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-27 18:35:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:unsigned int blk_rq_err_bytes(const struct request *rq)

返回类型:unsigned int

参数:

类型参数名称
const struct request *rq
1288  ff等于 op and common flags 按位与REQ_FAILFAST_MASK
1289  bytes等于0
1292  如果非rq_flags按位与merge of different types, fail separately 的值则返回:blk_rq_bytes(rq)
1302 bio循环
1303  如果 bottom bits req flags, * top bits REQ_OP. Use * accessors.按位与ff的值不等于ff退出
1305  bytes加等于 residual I/O count
1309  BUG_ON(blk_rq_bytes(rq) && !bytes)
1310  返回:bytes