函数逻辑报告 | 
Source Code:mm\hugetlb.c | 
Create Date:2022-07-27 16:55:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Subpool accounting for allocating and reserving pages
函数原型:static long hugepage_subpool_get_pages(struct hugepage_subpool *spool, long delta)
返回类型:long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct hugepage_subpool * | spool | |
| long | delta | 
| 142 | 加自旋锁 | 
| 144 | 如果 Maximum huge pages or -1 if no maximum. 不等于负1则 | 
| 145 | 如果 Used count against maximum, includes 加delta小于等于 Maximum huge pages or -1 if no maximum. 则 Used count against maximum, includes 加等于delta | 
| 147 | 否则 | 
| 149 | 转到:unlock_ret | 
| 168 | unlock_ret : | 
| 169 | 自旋锁解锁 | 
| 170 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| hugetlb_fix_reserve_counts | A rare out of memory error was encountered which prevented removal of* the reserve map region for a page. The huge page itself was free'ed* and removed from the page cache. This routine will adjust the subpool | 
| alloc_huge_page | |
| hugetlb_reserve_pages | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |