Function report | 
Source Code:mm\frontswap.c | 
Create Date:2022-07-28 15:21:23 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:"Store" data from a page to frontswap and associate it with the page's* swaptype and offset
Proto:int __frontswap_store(struct page *page)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | 
| 247 | ret = -1 | 
| 248 | swp_entry_t entry = {val = page_private(page), } | 
| 249 | type = Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 251 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 255 | VM_BUG_ON(!PageLocked(page)) | 
| 264 | If __frontswap_test(sis, offset) Then | 
| 276 | If ret == 0 Then | 
| 277 | __frontswap_set(sis, offset) | 
| 279 | Else | 
| 282 | If If enabled, frontswap_store will return failure even on success Then ret = -1 | 
| 285 | Return ret | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |