Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:20:05 |
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The background pageout daemon, started as a kernel thread* from the init process.* This basically trickles out pages so that we have _some_* free memory available even if there is no other activity* that frees anything up
Proto:static int kswapd(void *p)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | p |
| 3889 | classzone_idx = MAX_NR_ZONES - 1 |
| 3891 | tsk = current process |
| 3894 | If Not pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear. Then set_cpus_allowed_ptr(tsk, cpumask) |
| 3909 | flags |= Allocating memory | Allowed to write to swap | I am kswapd |
| 3910 | set_freezable() |
| 3912 | kswapd_order = 0 |
| 3913 | kswapd_classzone_idx = MAX_NR_ZONES |
| 3914 | cycle |
| 3917 | alloc_order = reclaim_order = kswapd_order |
| 3920 | kswapd_try_sleep : |
| 3925 | alloc_order = reclaim_order = kswapd_order |
| 3927 | kswapd_order = 0 |
| 3928 | kswapd_classzone_idx = MAX_NR_ZONES |
| 3930 | ret = try_to_freeze() |
| 3938 | If ret Then Continue |
| 3952 | If reclaim_order < alloc_order Then Go to kswapd_try_sleep |
| 3956 | flags &= ~( Allocating memory | Allowed to write to swap | I am kswapd ) |
| 3958 | Return 0 |
| 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 |