函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:43:58 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:kswapd_try_to_sleep
函数原型:static void kswapd_try_to_sleep(pg_data_t *pgdat, int alloc_order, int reclaim_order, unsigned int classzone_idx)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
pg_data_t * | pgdat | |
int | alloc_order | |
int | reclaim_order | |
unsigned int | classzone_idx |
3796 | remaining等于0 |
3797 | DEFINE_WAIT(wait) |
3826 | remaining等于schedule_timeout - sleep until timeout*@timeout: timeout value in jiffies* Make the current task sleep until @timeout jiffies have* elapsed |
3833 | 如果remaining则 |
3835 | kswapd_order等于两数取大(kswapd_order, reclaim_order) |
3864 | 否则 |
3865 | 如果remaining则Disable counters |
3867 | 否则Disable counters |
名称 | 描述 |
---|---|
kswapd | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |