函数逻辑报告 |
Source Code:mm\memory_hotplug.c |
Create Date:2022-07-27 17:30:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG
函数原型:static pg_data_t __ref *hotadd_new_pgdat(int nid, u64 start)
返回类型:pg_data_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | nid | |
| u64 | start |
| 900 | 如果非pgdat则 |
| 901 | pgdat等于arch_alloc_nodedata(nid) |
| 902 | 如果非pgdat则返回:NULL |
| 905 | per_cpu_nodestats等于alloc_percpu(structper_cpu_nodestat) |
| 907 | arch_refresh_nodedata(nid, pgdat) |
| 908 | 否则 |
| 915 | 保存结点中不同内存域的数目等于0 |
| 916 | kswapd_order等于0 |
| 917 | kswapd_classzone_idx等于0 |
| 921 | p等于per_cpu_ptr(per_cpu_nodestats, cpu) |
| 938 | 建立内存管理节点(ZONE)表 |
| 948 | 返回:pgdat |
| 名称 | 描述 |
|---|---|
| __try_online_node | ry_online_node - online a node if offlined*@nid: the node ID*@start: start addr of the node*@set_node_online: Whether we want to online the node* called by cpu_up() to online a node without onlined memory |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |