Function report |
Source Code:block\bio.c |
Create Date:2022-07-28 16:55:10 |
| Last Modify:2020-03-17 23:13:58 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bio_try_merge_pc_page
Proto:static bool bio_try_merge_pc_page(struct request_queue *q, struct bio *bio, struct page *page, unsigned len, unsigned offset, bool *same_page)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request_queue * | q | |
| struct bio * | bio | |
| struct page * | page | |
| unsigned | len | |
| unsigned | offset | |
| bool * | same_page |
| 705 | bv = the actual vec list [ how many bio_vec's - 1] |
| 706 | mask = queue_segment_boundary(q) |
| 708 | addr2 = Change "struct page" to physical address.(page) + offset + len - 1 |
| 712 | If bv_len + len > queue_max_segment_size(q) Then Return false |
| Name | Describe |
|---|---|
| __bio_add_pc_page | __bio_add_pc_page - attempt to add page to passthrough bio*@q: the target queue*@bio: destination bio*@page: page to add*@len: vec entry length*@offset: vec entry offset*@same_page: return if the merge happen inside the same page |
| 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 |