函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:在系统文件中注册中断进程

函数原型:void register_irq_proc(unsigned int irq, struct irq_desc *desc)

返回类型:void

参数:

类型参数名称
unsigned intirq
struct irq_desc *desc
340  DEFINE_MUTEX(register_lock)
341  __maybe_unusedirqp等于irq
344  如果非Access rules:* procfs protects read/write of /proc/irq/N/ files against a* concurrent free of the interrupt descriptor中断控制器信息恒等于无中断控制器实例则返回
352  mutex_lock( & register_lock)
354  如果IRQn目录(/proc/irq/n)则转到:out_unlock
357  输出格式化串
360  IRQn目录(/proc/irq/n)等于proc_mkdir(name, Access rules:* procfs protects read/write of /proc/irq/N/ files against a* concurrent free of the interrupt descriptor)
361  如果非IRQn目录(/proc/irq/n)则转到:out_unlock
386  proc_create_single_data("spurious", 0444, IRQn目录(/proc/irq/n), irq_spurious_proc_show, (void * )(long)irq)
389  out_unlock :
390  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.
调用者
名称描述
init_irq_proc
__setup_irq注册中断