Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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
39  async_synchronize_full - synchronize all asynchronous function calls* This function waits until all asynchronous function calls have been done.
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.)
45  for_each_irq_desc_reverse(i, desc)
46  raw_spin_lock_irq( & lock)
57  raw_spin_unlock_irq( & lock)
61  msleep(20)
68  for_each_irq_desc_reverse(i, desc)
69  raw_spin_lock_irq( & lock)
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
91  If Not (istate & IRQS_WAITING) Then
94  Else If i < 32 Then
96  mask |= 1 << i
98  raw_spin_unlock_irq( & lock)
101  Return mask