Function report |
Source Code:kernel\irq\manage.c |
Create Date:2022-07-28 10:10:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__request_percpu_irq - allocate a percpu interrupt line*@irq: Interrupt line to allocate*@handler: Function to be called when the IRQ occurs
Proto:int __request_percpu_irq(unsigned int irq, irq_handler_t handler, unsigned long flags, const char *devname, void __percpu *dev_id)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | irq | |
irq_handler_t | handler | |
unsigned long | flags | |
const char * | devname | |
void __percpu * | dev_id |
2419 | desc = Interrupt to descriptor |
2420 | If Not desc || Not irq_settings_can_request(desc) || Not irq_settings_is_per_cpu_devid(desc) Then Return -EINVAL |
2424 | If flags && flags != Flag to mark this interrupt as timer interrupt Then Return -EINVAL |
2427 | 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). |
2434 | percpu_dev_id = dev_id |
2436 | 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. |
2437 | If retval < 0 Then |
2439 | Return retval |
2442 | retval = register an interrupt |
2444 | If retval Then |
2449 | 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 |