函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\iomem.c Create Date:2022-07-27 15:12:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void *memremap(resource_size_t offset, size_t size, unsigned long flags)

返回类型:void

参数:

类型参数名称
resource_size_toffset
size_tsize
unsigned longflags
73  is_ram等于gion_intersects() - determine intersection of region with known resources*@start: region start address*@size: size of region*@flags: flags of resource (in iomem_resource)*@desc: descriptor of resource (in iomem_resource) or IORES_DESC_NONE* Check if the
75  void * addr = NULL
77  如果非flags则返回:NULL
80  如果is_ram恒等于REGION_MIXED
81  WARN_ONCE(1, "memremap attempted on mixed range %pa size: %#lx\n", & offset, (unsignedlong)size)
83  返回:NULL
87  如果flags按位与MEMREMAP_WB
94  如果is_ram恒等于REGION_INTERSECTSaddr等于try_ram_remap(offset, size, flags)
96  如果非addraddr等于arch_memremap_wb(offset, size)
106  如果非addris_ram恒等于REGION_INTERSECTSflags不等于MEMREMAP_WB
107  WARN_ONCE(1, "memremap attempted on ram %pa size: %#lx\n", & offset, (unsignedlong)size)
109  返回:NULL
112  如果非addrflags按位与MEMREMAP_WTaddr等于ioremap_wt(offset, size)
115  如果非addrflags按位与MEMREMAP_WCaddr等于ioremap_wc(offset, size)
118  返回:addr
调用者
名称描述
get_setup_data_size
type_show
setup_data_data_read
get_setup_data_total_num
devm_memremap
dma_init_coherent_memory
get_setup_data_paddr