Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\irq_sim.c Create Date:2022-07-28 10:14:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int devm_irq_sim_init(struct device *dev, struct irq_sim *sim, unsigned int num_irqs)

Type:int

Parameter:

TypeParameterName
struct device *dev
struct irq_sim *sim
unsigned intnum_irqs
151  dr = devres_alloc(devm_irq_sim_release, size of dr , GFP_KERNEL)
152  If Not dr Then Return -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  If rv < 0 Then
157  devres_free(dr)
158  Return rv
161  sim = sim
162  devres_add(dev, dr)
164  Return rv