函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:34:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Used when an allocation is about to fail under memory pressure
函数原型:static bool unreserve_highatomic_pageblock(const struct alloc_context *ac, bool force)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct alloc_context * | ac | |
| bool | force |
| 2561 | 如果非force且nr_reserved_highatomic小于等于pageblock_nr_pages则继续下一循环 |
| 2565 | spin_lock_irqsave( & 自旋锁, flags) |
| 2570 | 如果非page则继续下一循环 |
| 2580 | 如果is_migrate_highatomic_page(page)则 |
| 2603 | ret等于move_freepages_block(zone, page, migratetype, NULL) |
| 2605 | 如果ret则 |
| 2606 | spin_unlock_irqrestore( & 自旋锁, flags) |
| 2607 | 返回:ret |
| 2610 | spin_unlock_irqrestore( & 自旋锁, flags) |
| 2613 | 返回:false |
| 名称 | 描述 |
|---|---|
| __alloc_pages_direct_reclaim | The really slow allocator path where we enter direct reclaim |
| should_reclaim_retry | Checks whether it makes sense to retry the reclaim to make a forward progress* for the given allocation request.* We give up when we either have tried MAX_RECLAIM_RETRIES in a row* without success, or when we couldn't even meet the watermark if we |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |