函数逻辑报告 |
Source Code:mm\swap_state.c |
Create Date:2022-07-27 16:45:26 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:swap_ra_info
函数原型:static void swap_ra_info(struct vm_fault *vmf, struct vma_swap_readahead *ra_info)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_fault * | vmf | |
struct vma_swap_readahead * | ra_info |
643 | vma等于Target VMA |
656 | 如果max_win恒等于1则 |
657 | win等于1 |
658 | 返回 |
663 | entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
664 | 如果此条件成立可能性小(为编译器优化)(non_swap_entry(entry))则 |
671 | pfn等于PFN_DOWN(SWAP_RA_ADDR(ra_val)) |
672 | prev_win等于SWAP_RA_WIN(ra_val) |
673 | hits等于SWAP_RA_HITS(ra_val) |
676 | atomic_long_set( & swap_readahead_info, SWAP_RA_VAL(faddr, win, 0)) |
679 | 如果win恒等于1则 |
690 | 否则 |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |