函数逻辑报告 |
Source Code:mm\hugetlb.c |
Create Date:2022-07-27 16:57:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:prep_new_huge_page
函数原型:static void prep_new_huge_page(struct hstate *h, struct page *page, int nid)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct hstate * | h | |
| struct page * | page | |
| int | nid |
| 1253 | 初始化链表头 |
| 1255 | 加自旋锁 |
| 1256 | set_hugetlb_cgroup(page, NULL) |
| 1257 | nr_huge_pages自加 |
| 1258 | nr_huge_pages_node[nid]自加 |
| 1259 | 自旋锁解锁 |
| 名称 | 描述 |
|---|---|
| alloc_fresh_huge_page | Common helper to allocate a fresh hugetlb page. All specific allocators* should use this function to get new hugetlb pages |
| gather_bootmem_prealloc | Put bootmem huge pages into the standard lists after mem_map is up |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |