函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__devm_ioremap

函数原型:static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size, enum devm_ioremap_type type)

返回类型:void

参数:

类型参数名称
struct device *dev
resource_size_toffset
resource_size_tsize
enum devm_ioremap_typetype
30  void __iomem * * ptr, * addr = NULL
32  ptr等于devres_alloc(devm_ioremap_release, ptr的长度, GFP_KERNEL)
33  如果非ptr则返回:NULL
37  :type恒等于DEVM_IOREMAP
38  addr等于remap - map bus memory into CPU space*@offset: bus address of the memory*@size: size of the resource to map* ioremap performs a platform specific sequence of operations to* make bus memory CPU accessible via the readb/readw/readl/writeb/
39  退出
40  :type恒等于DEVM_IOREMAP_NC
41  addr等于ioremap_nocache(offset, size)
42  退出
43  :type恒等于DEVM_IOREMAP_UC
44  addr等于The default ioremap() behavior is non-cached; if you need something* else, you probably want one of the following.
45  退出
46  :type恒等于DEVM_IOREMAP_WC
47  addr等于ioremap_wc(offset, size)
48  退出
51  如果addr
52  ptr等于addr
53  devres_add(dev, ptr)
54  否则devres_free(ptr)
57  返回:addr
调用者
名称描述
devm_ioremap管理ioremap()
devm_ioremap_ucdevm_ioremap_uc - Managed ioremap_uc()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap_uc(). Map is automatically unmapped on driver detach.
devm_ioremap_nocache管理ioremap_nocache()
devm_ioremap_wc管理ioremap_wc()
__devm_ioremap_resource