Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\autoprobe.c Create Date:2022-07-28 10:13:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:probe_irq_off - end an interrupt autodetect*@val: mask of potential interrupts (unused)* Scans the unused interrupt lines and returns the line which* appears to have triggered the interrupt. If no interrupt was* found then zero is returned

Proto:int probe_irq_off(unsigned long val)

Type:int

Parameter:

TypeParameterName
unsigned longval
159  irq_found = 0 , nr_of_irqs = 0
162  for_each_irq_desc(i, desc)
163  raw_spin_lock_irq( & lock)
165  If istate & IRQS_AUTODETECT Then
166  If Not (istate & IRQS_WAITING) Then
167  If Not nr_of_irqs Then irq_found = i
169  nr_of_irqs++
174  raw_spin_unlock_irq( & lock)
176  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
178  If nr_of_irqs > 1 Then irq_found = -irq_found
181  Return irq_found