函数逻辑报告 |
Source Code:mm\swap_state.c |
Create Date:2022-07-27 16:44:52 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:add_to_swap - allocate swap space for a page*@page: page we want to move to swap* Allocate swap space for the page and add the page to the* swap cache. Caller needs to hold the page lock.
函数原型:int add_to_swap(struct page *page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page |
193 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
194 | VM_BUG_ON_PAGE(!PageUptodate(page), page) |
196 | entry等于get_swap_page(page) |
197 | 如果非val则返回:0 |
211 | err等于add_to_swap_cache resembles add_to_page_cache_locked on swapper_space,* but sets SwapCache flag and private instead of mapping and index. |
229 | Dirty a page |
231 | 返回:1 |
233 | fail : |
234 | put_swap_page(page, entry) |
235 | 返回:0 |
名称 | 描述 |
---|---|
shrink_page_list | shrink_page_list() returns the number of reclaimed pages |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |