函数逻辑报告 |
Source Code:mm\swap_state.c |
Create Date:2022-07-27 16:45:30 |
| Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static struct page *swap_vma_readahead(swp_entry_t fentry, gfp_t gfp_mask, struct vm_fault *vmf)
返回类型:struct page
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| swp_entry_t | fentry | |
| gfp_t | gfp_mask | |
| struct vm_fault * | vmf |
| 726 | vma等于Target VMA |
| 732 | struct vma_swap_readahead ra_info = {0, } |
| 734 | swap_ra_info(vmf, & ra_info) |
| 738 | blk_start_plug( & plug) |
| 744 | 如果pte_present(pentry)则继续下一循环 |
| 746 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
| 747 | 如果此条件成立可能性小(为编译器优化)(non_swap_entry(entry))则继续下一循环 |
| 749 | page等于__read_swap_cache_async(entry, gfp_mask, vma, Faulting virtual address , & page_allocated) |
| 751 | 如果非page则继续下一循环 |
| 753 | 如果page_allocated则 |
| 762 | blk_finish_plug( & plug) |
| 763 | lru_add_drain() |
| 764 | skip : |
| 名称 | 描述 |
|---|---|
| swapin_readahead | swapin_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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |