函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_domain_alloc_fwnode - Allocate a fwnode_handle suitable for* identifying an irq domain*@type: Type of irqchip_fwnode

函数原型:struct fwnode_handle *__irq_domain_alloc_fwnode(unsigned int type, int id, const char *name, phys_addr_t *pa)

返回类型:struct fwnode_handle

参数:

类型参数名称
unsigned inttype
intid
const char *name
phys_addr_t *pa
71  fwid等于分配内存并置零
74  :type恒等于IRQCHIP_FWNODE_NAMED
75  n等于kasprintf(GFP_KERNEL, "%s", name)
76  退出
77  :type恒等于IRQCHIP_FWNODE_NAMED_ID
78  n等于kasprintf(GFP_KERNEL, "%s-%d", name, id)
79  退出
80  默认
81  n等于kasprintf(GFP_KERNEL, "irqchip@%pa", pa)
82  退出
85  如果非fwid或非n
86  释放内存
87  释放内存
88  返回:NULL
91  type等于type
92  name等于n
93  pa等于pa
94  ops等于irqchip_fwnode_ops
95  返回:fwnode