函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_recalc_rq_segments

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

返回类型:unsigned int

参数:

类型参数名称
struct request *rq
377  nr_phys_segs等于0
378  nr_sectors等于0
382  如果非bio则返回:0
386  :bio_op(bio)恒等于REQ_OP_DISCARD
387  :bio_op(bio)恒等于REQ_OP_SECURE_ERASE
388  :bio_op(bio)恒等于REQ_OP_WRITE_ZEROES
389  返回:0
390  :bio_op(bio)恒等于REQ_OP_WRITE_SAME
391  返回:1
394  rq_for_each_bvec(bv, rq, iter)
395  vec_split_segs - verify whether or not a bvec should be split in the middle*@q: [in] request queue associated with the bio associated with @bv*@bv: [in] bvec to examine*@nsegs: [in,out] Number of segments in the bio being built
397  返回:nr_phys_segs
调用者
名称描述
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