Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_recalc_rq_segments

Proto:unsigned int blk_recalc_rq_segments(struct request *rq)

Type:unsigned int

Parameter:

TypeParameterName
struct request *rq
377  nr_phys_segs = 0
378  nr_sectors = 0
382  If Not bio Then Return 0
386  Case bio_op(bio) == REQ_OP_DISCARD
387  Case bio_op(bio) == REQ_OP_SECURE_ERASE
388  Case bio_op(bio) == REQ_OP_WRITE_ZEROES
389  Return 0
390  Case bio_op(bio) == REQ_OP_WRITE_SAME
391  Return 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  Return nr_phys_segs
Caller
NameDescribe
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