Function report |
Source Code:kernel\irq\irq_sim.c |
Create Date:2022-07-28 10:14:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int irq_sim_init(struct irq_sim *sim, unsigned int num_irqs)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct irq_sim * | sim | |
unsigned int | num_irqs |
79 | irqs = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
83 | irq_base = use macros to avoid needing export.h for THIS_MODULE ( - 1, 0, num_irqs, 0) |
84 | If irq_base < 0 Then |
86 | Return irq_base |
89 | pending = bitmap_zalloc(num_irqs, GFP_KERNEL) |
90 | If Not pending Then |
93 | Return -ENOMEM |
98 | enabled = false |
102 | irq_modify_status(irq_base + i, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE) |
106 | init_irq_work( & work, irq_sim_handle_irq) |
109 | Return irq_base |
Name | Describe |
---|---|
devm_irq_sim_init | 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 |
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 |