函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:34:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Reserve a pageblock for exclusive use of high-order atomic allocations if* there are no empty page blocks that contain a page with a suitable order
函数原型:static void reserve_highatomic_pageblock(struct page *page, struct zone *zone, unsigned int alloc_order)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
struct zone * | zone | |
unsigned int | alloc_order |
2512 | max_managed等于zone_managed_pages(zone)除100加pageblock_nr_pages |
2513 | 如果nr_reserved_highatomic大于等于max_managed则返回 |
2516 | spin_lock_irqsave( & 自旋锁, flags) |
2519 | 如果nr_reserved_highatomic大于等于max_managed则转到:out_unlock |
2523 | mt等于get_pageblock_migratetype(page) |
2524 | 如果非is_migrate_highatomic(mt)且非is_migrate_isolate(mt)且非is_migrate_cma(mt)则 |
2528 | move_freepages_block(zone, page, MIGRATE_HIGHATOMIC, NULL) |
2531 | out_unlock : |
2532 | spin_unlock_irqrestore( & 自旋锁, flags) |
名称 | 描述 |
---|---|
get_page_from_freelist | get_page_from_freelist goes through the zonelist trying to allocate* a page. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |