函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:devm_memremap

函数原型:void *devm_memremap(struct device *dev, resource_size_t offset, size_t size, unsigned long flags)

返回类型:void

参数:

类型参数名称
struct device *dev
resource_size_toffset
size_tsize
unsigned longflags
144  ptr等于devres_alloc_node(devm_memremap_release, ptr的长度, GFP_KERNEL, dev_to_node(dev))
146  如果非ptr则返回:错误号
149  addr等于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
150  如果addr
151  ptr等于addr
152  devres_add(dev, ptr)
153  否则
154  devres_free(ptr)
155  返回:错误号
158  返回:addr