Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\iomem.c Create Date:2022-07-28 13:50:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:devm_memremap

Proto:void *devm_memremap(struct device *dev, resource_size_t offset, size_t size, unsigned long flags)

Type:void

Parameter:

TypeParameterName
struct device *dev
resource_size_toffset
size_tsize
unsigned longflags
144  ptr = devres_alloc_node(devm_memremap_release, size of ptr , GFP_KERNEL, dev_to_node(dev))
146  If Not ptr Then Return ERR_PTR( - ENOMEM)
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  If addr Then
151  ptr = addr
152  devres_add(dev, ptr)
153  Else
154  devres_free(ptr)
155  Return ERR_PTR( - ENXIO)
158  Return addr