Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:18:28 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:unuse_mm
Proto:static int unuse_mm(struct mm_struct *mm, unsigned int type, bool frontswap, unsigned long *fs_pages_to_unuse)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mm_struct * | mm | |
| unsigned int | type | |
| bool | frontswap | |
| unsigned long * | fs_pages_to_unuse |
| 2071 | ret = 0 |
| 2073 | lock for reading |
| 2075 | If Serialized by page_table_lock Then |
| 2081 | cond_resched() |
| 2083 | lease a read lock |
| 2084 | Return ret |
| Name | Describe |
|---|---|
| try_to_unuse | If the boolean frontswap is true, only unuse pages_to_unuse pages;* pages_to_unuse==0 means all pages; ignored if frontswap is false |
| io_sq_thread | |
| __io_worker_unuse | Note: drops the wqe->lock if returning true! The caller must re-acquire* the lock in that case. Some callers need to restart handling if this* happens, so we can't just re-acquire the lock on behalf of the caller. |
| 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 |