函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:08:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:remap_p4d_range
函数原型:static inline int remap_p4d_range(struct mm_struct *mm, pgd_t *pgd, unsigned long addr, unsigned long end, unsigned long pfn, pgprot_t prot)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
pgd_t * | pgd | |
unsigned long | addr | |
unsigned long | end | |
unsigned long | pfn | |
pgprot_t | prot |
1888 | pfn减等于addr右移PAGE_SHIFT determines the page size 位 |
1889 | p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed. |
1892 | 循环 |
1893 | next等于p4d_addr_end(addr, end) |
1894 | err等于remap_pud_range(mm, p4d, addr, next, pfn + (addr >> PAGE_SHIFT determines the page size ), prot) |
1899 | 返回:0 |
名称 | 描述 |
---|---|
remap_pfn_range | map_pfn_range - remap kernel memory to userspace*@vma: user vma to map to*@addr: target user address to start at*@pfn: physical address of kernel memory*@size: size of map area*@prot: page protection flags for this mapping |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |