函数逻辑报告 |
Source Code:block\blk-merge.c |
Create Date:2022-07-27 18:40:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static bool bvec_split_segs(const struct request_queue *q, const struct bio_vec *bv, unsigned *nsegs, unsigned *sectors, unsigned max_segs, unsigned max_sectors)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct request_queue * | q | |
| const struct bio_vec * | bv | |
| unsigned * | nsegs | |
| unsigned * | sectors | |
| unsigned | max_segs | |
| unsigned | max_sectors |
| 201 | max_len等于两数取小(max_sectors, UINT_MAX >> 9)减sectors左移9位 |
| 203 | total_len等于0 |
| 204 | seg_size等于0 |
| 名称 | 描述 |
|---|---|
| blk_bio_segment_split | lk_bio_segment_split - split a bio in two bios*@q: [in] request queue pointer*@bio: [in] bio to be split*@bs: [in] bio set to allocate the clone from*@segs: [out] number of segments in the bio with the first half of the sectors* Clone @bio, update the |
| blk_recalc_rq_segments |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |