函数逻辑报告 |
Source Code:mm\frontswap.c |
Create Date:2022-07-27 16:51:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:"Get" data from frontswap associated with swaptype and offset that were* specified when the data was put to frontswap and use it to fill the* specified page with data. Page must be locked and in the swap cache.
函数原型:int __frontswap_load(struct page *page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page |
296 | ret等于负1 |
297 | swp_entry_t entry = {val = page_private(page), } |
298 | type等于Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
300 | offset等于Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
304 | VM_BUG_ON(!PageLocked(page)) |
307 | 如果非__frontswap_test(sis, offset)则返回:负1 |
316 | 如果ret恒等于0则 |
317 | inc_frontswap_loads() |
319 | SetPageDirty(page) |
320 | __frontswap_clear(sis, offset) |
323 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |