函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:43:18 |
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This is the direct reclaim path, for page-allocating processes. We only* try to reclaim pages from zones which will satisfy the caller's allocation* request.* If a zone is deemed to be full of pinned pages then just give it a light
函数原型:static void shrink_zones(struct zonelist *zonelist, struct scan_control *sc)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct zonelist * | zonelist | |
| struct scan_control * | sc |
| 2931 | pg_data_t * last_pgdat = NULL |
| 2938 | orig_mask等于 This context's GFP mask |
| 2939 | 如果buffer_heads_over_limit则 |
| 2940 | This context's GFP mask 或等于__GFP_HIGHMEM |
| 2950 | 如果非cgroup_reclaim(sc)则 |
| 2951 | 如果非cpuset_zone_allowed(zone, GFP_KERNEL | __GFP_HARDWALL)则继续下一循环 |
| 2967 | One of the zones is ready for compaction = true |
| 2968 | 继续下一循环 |
| 2977 | 如果建立内存域和父结点之间的关联恒等于last_pgdat则继续下一循环 |
| 2986 | nr_soft_scanned等于0 |
| 2996 | 如果建立内存域和父结点之间的关联恒等于last_pgdat则继续下一循环 |
| 2998 | last_pgdat等于建立内存域和父结点之间的关联 |
| 2999 | shrink_node(建立内存域和父结点之间的关联, sc) |
| 3006 | This context's GFP mask 等于orig_mask |
| 名称 | 描述 |
|---|---|
| do_try_to_free_pages | This is the main entry point to direct page reclaim |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |