函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:44:02 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int kswapd(void *p)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | p |
3889 | classzone_idx等于MAX_NR_ZONES减1 |
3894 | 如果非pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.则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 |
3914 | 循环 |
3917 | alloc_order等于reclaim_order等于kswapd_order |
3920 | kswapd_try_sleep : |
3925 | alloc_order等于reclaim_order等于kswapd_order |
3927 | kswapd_order等于0 |
3930 | ret等于try_to_freeze() |
3938 | 如果ret则继续下一循环 |
3952 | 如果reclaim_order小于alloc_order则转到:kswapd_try_sleep |
3956 | flags与等于Allocating memory 按位或Allowed to write to swap 按位或I am kswapd 的值的反 |
3958 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |