函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:08:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | addr | |
unsigned long | pfn | |
unsigned long | size | |
pgprot_t | prot |
1942 | 如果is_cow_mapping(Flags, see mm.h. )则 |
1948 | err等于track_pfn_remap(vma, & prot, remap_pfn, addr, align the pointer to the (next) page boundary (size)) |
1952 | Flags, see mm.h. 或等于Memory mapped I/O or similar 按位或Page-ranges managed without "struct page", just pure PFN 按位或Cannot expand with mremap() 按位或Do not include in the core dump |
1955 | pfn减等于addr右移PAGE_SHIFT determines the page size 位 |
1957 | flush_cache_range(vma, addr, end) |
1958 | 循环 |
1960 | err等于remap_p4d_range(mm, pgd, addr, next, pfn + (addr >> PAGE_SHIFT determines the page size ), prot) |
1969 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |