函数逻辑报告 |
Source Code:mm\hugetlb.c |
Create Date:2022-07-27 16:58:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__vma_reservation_common
函数原型:static long __vma_reservation_common(struct hstate *h, struct vm_area_struct *vma, unsigned long addr, enum vma_resv_mode mode)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct hstate * | h | |
struct vm_area_struct * | vma | |
unsigned long | addr | |
enum vma_resv_mode | mode |
1874 | resv等于vma_resv_map(vma) |
1875 | 如果非resv则返回:1 |
1878 | idx等于Convert the address within this vma to the page offset within* the mapping, in pagecache page units; huge pages here. |
1880 | 当:mode恒等于VMA_NEEDS_RESV |
1882 | 退出 |
1883 | 当:mode恒等于VMA_COMMIT_RESV |
1886 | 当:mode恒等于VMA_END_RESV |
1890 | 当:mode恒等于VMA_ADD_RESV |
1891 | 如果Flags, see mm.h. 按位与VM_MAYSHARE则ret等于Add the huge page range represented by [f, t) to the reserve* map |
1893 | 否则 |
1897 | 退出 |
1898 | 默认 |
1899 | BUG() |
1902 | 如果Flags, see mm.h. 按位与VM_MAYSHARE则返回:ret |
1918 | 如果ret则返回:0 |
1920 | 否则返回:1 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |