Function report |
Source Code:block\bio.c |
Create Date:2022-07-28 16:55:08 |
Last Modify:2020-03-17 23:13:58 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:page_is_mergeable
Proto:static inline bool page_is_mergeable(const struct bio_vec *bv, struct page *page, unsigned int len, unsigned int off, bool *same_page)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
const struct bio_vec * | bv | |
struct page * | page | |
unsigned int | len | |
unsigned int | off | |
bool * | same_page |
686 | vec_end_addr = Change "struct page" to physical address.(bv_page) + bv_offset + bv_len - 1 |
690 | If vec_end_addr + 1 != page_addr + off Then Return false |
692 | If xen_domain() && Not xen_biovec_phys_mergeable(bv, page) Then Return false |
695 | same_page = (vec_end_addr & PAGE_MASK) == page_addr |
696 | If Not same_page && pfn_to_page(PFN_DOWN(vec_end_addr)) + 1 != page Then Return false |
698 | Return true |
Name | Describe |
---|---|
__bio_try_merge_page | __bio_try_merge_page - try appending data to an existing bvec.*@bio: destination bio*@page: start page to add*@len: length of the data to add*@off: offset of the data relative to @page*@same_page: return if the segment has been merged 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 |