Function report |
Source Code:mm\swap_state.c |
Create Date:2022-07-28 15:14:46 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Locate a page of swap in physical memory, reserving swap cache space* and reading the disk if it is not already cached.* A failure return means that either the page allocation failed or that* the swap entry is no longer in use.
Proto:struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, struct vm_area_struct *vma, unsigned long addr, bool do_poll)
Type:struct page
Parameter:
Type | Parameter | Name |
---|---|---|
swp_entry_t | entry | |
gfp_t | gfp_mask | |
struct vm_area_struct * | vma | |
unsigned long | addr | |
bool | do_poll |
452 | retpage = __read_swap_cache_async(entry, gfp_mask, vma, addr, & page_was_allocated) |
455 | If page_was_allocated Then swap_readpage(retpage, do_poll) |
458 | Return retpage |
Name | Describe |
---|---|
swap_cluster_readahead | swap_cluster_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin. |
swap_vma_readahead | swap_vma_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin.* Primitive swap readahead code |
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 |