Function report |
Source Code:block\bounce.c |
Create Date:2022-07-28 17:33:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__blk_queue_bounce
Proto:static void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig, mempool_t *pool)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request_queue * | q | |
| struct bio ** | bio_orig | |
| mempool_t * | pool |
| 293 | i = 0 |
| 294 | bool bounce = false |
| 295 | sectors = 0 |
| 296 | passthrough = bio_is_passthrough( * bio_orig) |
| 298 | bio_for_each_segment(from, * bio_orig, iter) |
| 299 | If i++ < BIO_MAX_PAGES Then sectors += bv_len >> 9 |
| 301 | If page_to_pfn(bv_page) > bounce_pfn Then bounce = true |
| 304 | If Not bounce Then Return |
| 307 | If Not passthrough && sectors < bio_sectors( * bio_orig) Then |
| 313 | bio = bounce_clone_bio( * bio_orig, GFP_NOIO, passthrough ? NULL : & bounce_bio_set) |
| 321 | When i < how many bio_vec's cycle |
| 324 | If page_to_pfn(page) <= bounce_pfn Then Continue |
| 344 | status, etc and bvec pool number |= 1 << BIO_BOUNCED |
| 347 | bi_end_io = bounce_end_io_write |
| 348 | If rw == generic data direction definitions Then bi_end_io = bounce_end_io_read |
| 350 | Else |
| 352 | If rw == generic data direction definitions Then bi_end_io = bounce_end_io_read_isa |
| 356 | bi_private = bio_orig |
| 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 |