Function report |
Source Code:block\bounce.c |
Create Date:2022-07-28 17:33:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bounce_clone_bio
Proto:static struct bio *bounce_clone_bio(struct bio *bio_src, gfp_t gfp_mask, struct bio_set *bs)
Type:struct bio
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bio * | bio_src | |
| gfp_t | gfp_mask | |
| struct bio_set * | bs |
| 246 | bio = _alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from |
| 247 | If Not bio Then Return NULL |
| 250 | bottom bits req flags, * top bits REQ_OP. Use * accessors. = bottom bits req flags, * top bits REQ_OP. Use * accessors. |
| 252 | bi_write_hint = bi_write_hint |
| 257 | Case bio_op(bio) == REQ_OP_DISCARD |
| 258 | Case bio_op(bio) == REQ_OP_SECURE_ERASE |
| 259 | Case bio_op(bio) == REQ_OP_WRITE_ZEROES |
| 260 | Break |
| 261 | Case bio_op(bio) == REQ_OP_WRITE_SAME |
| 262 | the actual vec list [ how many bio_vec's ++] = the actual vec list [0] |
| 263 | Break |
| 264 | Default |
| 265 | bio_for_each_segment(bv, bio_src, iter) |
| 266 | the actual vec list [ how many bio_vec's ++] = bv |
| 267 | Break |
| 270 | If bio_integrity(bio_src) Then |
| 281 | blkcg_bio_issue_init(bio) |
| 283 | Return bio |
| Name | Describe |
|---|---|
| __blk_queue_bounce |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |