| Function report | 
| Source Code: kernel\irq\irqdomain.c | Create Date:2022-07-28 10:13:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:q_domain_alloc_fwnode - Allocate a fwnode_handle suitable for* identifying an irq domain*@type: Type of irqchip_fwnode
Proto:struct fwnode_handle *__irq_domain_alloc_fwnode(unsigned int type, int id, const char *name, phys_addr_t *pa)
Type:struct fwnode_handle
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | type | |
| int | id | |
| const char * | name | |
| phys_addr_t * | pa | 
| 71 | fwid = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 74 | Case type == IRQCHIP_FWNODE_NAMED | 
| 75 | n = kasprintf(GFP_KERNEL, "%s", name) | 
| 76 | Break | 
| 77 | Case type == IRQCHIP_FWNODE_NAMED_ID | 
| 78 | n = kasprintf(GFP_KERNEL, "%s-%d", name, id) | 
| 79 | Break | 
| 80 | Default | 
| 81 | n = kasprintf(GFP_KERNEL, "irqchip@%pa", pa) | 
| 82 | Break | 
| 88 | Return NULL | 
| 94 | ops = irqchip_fwnode_ops | 
| 95 | Return fwnode | 
| 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 |