Function report | 
Source Code:lib\devres.c | 
Create Date:2022-07-28 06:48:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__devm_ioremap
Proto:static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size, enum devm_ioremap_type type)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct device * | dev | |
| resource_size_t | offset | |
| resource_size_t | size | |
| enum devm_ioremap_type | type | 
| 32 | ptr = devres_alloc(devm_ioremap_release, size of ptr , GFP_KERNEL) | 
| 33 | If Not ptr Then Return NULL | 
| 37 | Case type == DEVM_IOREMAP | 
| 39 | Break | 
| 40 | Case type == DEVM_IOREMAP_NC | 
| 41 | addr = ioremap_nocache(offset, size) | 
| 42 | Break | 
| 43 | Case 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 | Break | 
| 46 | Case type == DEVM_IOREMAP_WC | 
| 47 | addr = ioremap_wc(offset, size) | 
| 48 | Break | 
| 51 | If addr Then | 
| 53 | devres_add(dev, ptr) | 
| 54 | Else devres_free(ptr) | 
| 57 | Return addr | 
| Name | Describe | 
|---|---|
| devm_ioremap | devm_ioremap - Managed ioremap()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap(). Map is automatically unmapped on driver detach. | 
| devm_ioremap_uc | devm_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 | devm_ioremap_nocache - Managed ioremap_nocache()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap_nocache(). Map is automatically unmapped on driver* detach. | 
| devm_ioremap_wc | devm_ioremap_wc - Managed ioremap_wc()*@dev: Generic device to remap IO address for*@offset: Resource address to map*@size: Size of map* Managed ioremap_wc(). Map is automatically unmapped on driver detach. | 
| __devm_ioremap_resource | 
| 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  |