Function report |
Source Code:kernel\irq\autoprobe.c |
Create Date:2022-07-28 10:13:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:probe_irq_on - begin an interrupt autodetect* Commence probing for an interrupt. The interrupts are scanned* and a mask of potential interrupt lines is returned.
Proto:unsigned long probe_irq_on(void)
Type:unsigned long
Parameter:Nothing
| 33 | mask = 0 |
| 40 | mutex_lock( & Autodetection depends on the fact that any interrupt that* comes in on to an unassigned handler will get stuck with* "IRQS_WAITING" cleared and the interrupt disabled.) |
| 46 | raw_spin_lock_irq( & lock) |
| 47 | If Not IRQ action list && irq_settings_can_probe(desc) Then |
| 52 | If irq_set_type Then irq_set_type( & irq_data, IRQ_TYPE_PROBE) |
| 57 | raw_spin_unlock_irq( & lock) |
| 61 | msleep(20) |
| 69 | raw_spin_lock_irq( & lock) |
| 70 | If Not IRQ action list && irq_settings_can_probe(desc) Then |
| 71 | istate |= IRQS_AUTODETECT | IRQS_WAITING |
| 72 | If irq_activate_and_startup(desc, IRQ_NORESEND) Then istate |= IRQS_PENDING |
| 75 | raw_spin_unlock_irq( & lock) |
| 81 | msleep(100) |
| 86 | for_each_irq_desc(i, desc) |
| 87 | raw_spin_lock_irq( & lock) |
| 89 | If istate & IRQS_AUTODETECT Then |
| 98 | raw_spin_unlock_irq( & lock) |
| 101 | Return mask |
| 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 |