Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
unsigned inttype
intid
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
85  If Not fwid || Not n Then
86  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
87  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
88  Return NULL
91  type = type
92  name = n
93  pa = pa
94  ops = irqchip_fwnode_ops
95  Return fwnode