函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\autoprobe.c Create Date:2022-07-27 11:13:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int probe_irq_off(unsigned long val)

返回类型:int

参数:

类型参数名称
unsigned longval
159  irq_found等于0, nr_of_irqs等于0
162  for_each_irq_desc(i, desc)
163  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & 自旋锁)
165  如果istate按位与IRQS_AUTODETECT
166  如果非istate按位与IRQS_WAITING的值则
167  如果非nr_of_irqsirq_found等于i
169  nr_of_irqs自加
171  istate与等于IRQS_AUTODETECT的反
174  raw_spin_unlock_irq( & 自旋锁)
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  如果nr_of_irqs大于1则irq_found等于负irq_found
181  返回:irq_found