函数逻辑报告 |
Source Code:mm\sparse.c |
Create Date:2022-07-27 17:08:09 |
Last Modify:2020-03-17 22:36:03 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:section_activate
函数原型:static struct page *__meminit section_activate(int nid, unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)
返回类型:struct page
参数:
类型 | 参数 | 名称 |
---|---|---|
int | nid | |
unsigned long | pfn | |
unsigned long | nr_pages | |
struct vmem_altmap * | altmap |
804 | DECLARE_BITMAP(map, SUBSECTIONS_PER_SECTION) = {0} |
805 | ms等于__pfn_to_section(pfn) |
806 | struct usage = NULL |
809 | rc等于0 |
811 | subsection_mask_set(map, pfn, nr_pages) |
813 | 如果非usage则 |
819 | subsection_map等于subsection_map[0] |
821 | 如果bitmap_empty(map, SUBSECTIONS_PER_SECTION)则rc等于负EINVAL |
823 | 否则如果bitmap_intersects(map, subsection_map, SUBSECTIONS_PER_SECTION)则rc等于负EEXIST |
829 | 如果rc则 |
843 | 如果nr_pages小于PAGES_PER_SECTION且early_section(ms)则返回:pfn_to_page(pfn) |
847 | 如果非memmap则 |
848 | section_deactivate(pfn, nr_pages, altmap) |
849 | 返回:错误号 |
852 | 返回:memmap |
名称 | 描述 |
---|---|
sparse_add_section | sparse_add_section - add a memory section, or populate an existing one*@nid: The node to add section on*@start_pfn: start pfn of the memory range*@nr_pages: number of pfns to add in the section*@altmap: device page map* This is only intended for hotplug |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |