Function report |
Source Code:kernel\iomem.c |
Create Date:2022-07-28 13:50:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:memremap() - remap an iomem_resource as cacheable memory*@offset: iomem resource start address*@size: size of remap*@flags: any of MEMREMAP_WB, MEMREMAP_WT, MEMREMAP_WC,* MEMREMAP_ENC, MEMREMAP_DEC* memremap() is "ioremap" for cases where it is known that
Proto:void *memremap(resource_size_t offset, size_t size, unsigned long flags)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
resource_size_t | offset | |
size_t | size | |
unsigned long | flags |
75 | void * addr = NULL |
77 | If Not flags Then Return NULL |
80 | If is_ram == REGION_MIXED Then |
83 | Return NULL |
87 | If flags & MEMREMAP_WB Then |
94 | If is_ram == REGION_INTERSECTS Then addr = try_ram_remap(offset, size, flags) |
96 | If Not addr Then addr = arch_memremap_wb(offset, size) |
106 | If Not addr && is_ram == REGION_INTERSECTS && flags != MEMREMAP_WB Then |
109 | Return NULL |
112 | If Not addr && flags & MEMREMAP_WT Then addr = ioremap_wt(offset, size) |
115 | If Not addr && flags & MEMREMAP_WC Then addr = ioremap_wc(offset, size) |
118 | Return addr |
Name | Describe |
---|---|
get_setup_data_size | |
type_show | |
setup_data_data_read | |
get_setup_data_total_num | |
devm_memremap | |
dma_init_coherent_memory |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |