Function report |
Source Code:kernel\irq\manage.c |
Create Date:2022-07-28 10:10:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:quest_percpu_nmi - allocate a percpu interrupt line for NMI delivery*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
Proto:int request_percpu_nmi(unsigned int irq, irq_handler_t handler, const char *name, void __percpu *dev_id)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | irq | |
irq_handler_t | handler | |
const char * | name | |
void __percpu * | dev_id |
2485 | desc = Interrupt to descriptor |
2487 | If Not desc || Not irq_settings_can_request(desc) || Not irq_settings_is_per_cpu_devid(desc) || irq_settings_can_autoenable(desc) || Not irq_supports_nmi(desc) Then Return -EINVAL |
2497 | action = 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). |
2502 | flags = Interrupt is per cpu | Do not disable this IRQ during suspend | Interrupt cannot be threaded | Flag to exclude this interrupt from irq balancing |
2505 | percpu_dev_id = dev_id |
2507 | retval = q_chip_pm_get - Enable power for an IRQ chip*@data: Pointer to interrupt specific data* Enable the power to the IRQ chip referenced by the interrupt data* structure. |
2511 | retval = register an interrupt |
2512 | If retval Then Go to err_irq_setup |
2515 | raw_spin_lock_irqsave( & lock, flags) |
2517 | raw_spin_unlock_irqrestore( & lock, flags) |
2519 | Return 0 |
2521 | err_irq_setup : |
2523 | err_out : |
2526 | Return retval |
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 |