Function report |
Source Code:lib\devres.c |
Create Date:2022-07-28 06:49:00 |
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_resource
Proto:static void __iomem *__devm_ioremap_resource(struct device *dev, const struct resource *res, enum devm_ioremap_type type)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
const struct resource * | res | |
enum devm_ioremap_type | type |
145 | If Not res || resource_type(res) != IORESOURCE_MEM Then |
147 | Return IOMEM_ERR_PTR( - EINVAL) |
150 | size = resource_size(res) |
154 | Return IOMEM_ERR_PTR( - EBUSY) |
158 | If Not dest_ptr Then |
160 | devm_release_mem_region(dev, start, size) |
161 | dest_ptr = IOMEM_ERR_PTR( - ENOMEM) |
164 | Return dest_ptr |
Name | Describe |
---|---|
devm_ioremap_resource | devm_ioremap_resource() - check, request region, and ioremap resource*@dev: generic device to handle the resource for*@res: resource to be handled* Checks that a resource is a valid memory region, requests the memory* region and ioremaps it |
devm_ioremap_resource_wc | devm_ioremap_resource_wc() - write-combined variant of* devm_ioremap_resource()*@dev: generic device to handle the resource for*@res: resource to be handled* Returns a pointer to the remapped memory or an ERR_PTR() encoded error code* on failure |
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 |