函数逻辑报告 |
Source Code:mm\swap_state.c |
Create Date:2022-07-27 16:45:10 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:swapin_nr_pages
函数原型:static unsigned long swapin_nr_pages(unsigned long offset)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | offset |
508 | 如果max_pages小于等于1则返回:1 |
511 | hits等于atomic_xchg( & swapin_readahead_hits, 0) |
512 | pages等于__swapin_nr_pages(prev_offset, offset, hits, max_pages, atomic_read( & last_readahead_pages)) |
514 | 如果非hits则prev_offset等于offset |
516 | atomic_set( & last_readahead_pages, pages) |
518 | 返回:pages |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |