函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_sim_init - Initialize the interrupt simulator for a managed device.*@dev: Device to initialize the simulator object for.*@sim: The interrupt simulator object to initialize.*@num_irqs: Number of interrupts to allocate

函数原型:int devm_irq_sim_init(struct device *dev, struct irq_sim *sim, unsigned int num_irqs)

返回类型:int

参数:

类型参数名称
struct device *dev
struct irq_sim *sim
unsigned intnum_irqs
151  dr等于devres_alloc(devm_irq_sim_release, dr的长度, GFP_KERNEL)
152  如果非dr则返回:负ENOMEM
155  rv等于q_sim_init - Initialize the interrupt simulator: allocate a range of* dummy interrupts.*@sim: The interrupt simulator object to initialize.*@num_irqs: Number of interrupts to allocate* On success: return the base of the allocated interrupt range.
156  如果rv小于0则
157  devres_free(dr)
158  返回:rv
161  sim等于sim
162  devres_add(dev, dr)
164  返回:rv