Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:17:27 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__swap_entry_free_locked
Proto:static unsigned char __swap_entry_free_locked(struct swap_info_struct *p, unsigned long offset, unsigned char usage)
Type:unsigned char
Parameter:
Type | Parameter | Name |
---|---|---|
struct swap_info_struct * | p | |
unsigned long | offset | |
unsigned char | usage |
1184 | count = vmalloc'ed array of usage counts [offset] |
1189 | If usage == Flag page is cached, in first swap_map Then |
1192 | Else if count == Owned by shmem/tmpfs, in first swap_map Then |
1197 | count = 0 |
1198 | Else if (count & ~See swap_map continuation for full count ) <= Max duplication count, in first swap_map Then |
1199 | If count == See swap_map continuation for full count Then |
1202 | Else count = Max duplication count, in first swap_map |
1204 | Else count-- |
1209 | vmalloc'ed array of usage counts [offset] = If usage Else Flag page is cached, in first swap_map |
1211 | Return usage |
Name | Describe |
---|---|
__swap_entry_free | |
put_swap_page | Called after dropping swapcache to decrease refcnt to swap entries. |
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 |