Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:register_irq_proc

Proto:void register_irq_proc(unsigned int irq, struct irq_desc *desc)

Type:void

Parameter:

TypeParameterName
unsigned intirq
struct irq_desc *desc
340  DEFINE_MUTEX(register_lock)
341  __maybe_unused * irqp = irq
344  If Not Access rules:* procfs protects read/write of /proc/irq/N/ files against a* concurrent free of the interrupt descriptor || chip == Generic no controller implementation Then Return
352  mutex_lock( & register_lock)
354  If dir Then Go to out_unlock
357  sprintf(name, "%d", irq)
360  dir = proc_mkdir(name, Access rules:* procfs protects read/write of /proc/irq/N/ files against a* concurrent free of the interrupt descriptor)
361  If Not dir Then Go to out_unlock
386  proc_create_single_data("spurious", 0444, dir, 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.
Caller
NameDescribe
init_irq_proc
__setup_irqregister an interrupt