函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:req_bio_endio

函数原型:static void req_bio_endio(struct request *rq, struct bio *bio, unsigned int nbytes, blk_status_t error)

返回类型:void

参数:

类型参数名称
struct request *rq
struct bio *bio
unsigned intnbytes
blk_status_terror
235  如果errorbi_status等于error
238  如果此条件成立可能性小(为编译器优化)(rq_flags & don't warn about errors )则bio_set_flag(bio, BIO_QUIET)
241  _advance - increment/complete a bio by some number of bytes*@bio: bio to advance*@bytes: number of bytes to complete* This updates bi_sector, bi_size and bi_idx; if the number of bytes to* complete doesn't align with a bvec boundary, then bv_len and
244  如果 residual I/O count 恒等于0且非rq_flags按位与quest for flush sequence 的值则_endio - end I/O on a bio*@bio: bio* Description:* bio_endio() will end I/O on the whole bio. bio_endio() is the preferred* way to end I/O on a bio. No one should call bi_end_io() directly on a
调用者
名称描述
blk_update_requestlk_update_request - Special helper function for request stacking drivers*@req: the request being processed*@error: block status code*@nr_bytes: number of bytes to complete @req* Description:* Ends I/O on a number of bytes attached to @req, but doesn't