函数逻辑报告 | 
Source Code:mm\hugetlb.c | 
Create Date:2022-07-27 16:57:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__basepage_index
函数原型:unsigned long __basepage_index(struct page *page)
返回类型:unsigned long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | page | 
| 1321 | page_head等于compound_head(page) | 
| 1322 | index等于Return the pagecache index of the passed page. Regular pagecache pages* use ->index whereas swapcache pages use swp_offset(->private) | 
| 1328 | 如果compound_order(page_head)大于等于Free memory management - zoned buddy allocator. 则compound_idx等于page_to_pfn(page)减page_to_pfn(page_head) | 
| 1330 | 否则compound_idx等于page减page_head | 
| 1333 | 返回:index左移compound_order(page_head)位的值加compound_idx | 
| 名称 | 描述 | 
|---|---|
| basepage_index | Return page->index in PAGE_SIZE units | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |