Function Report

Linux Kernel (v4.4)

Source File:kernel\irq\proc.c Create Date:2016-01-14 11:00:43
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:register_irq_proc

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

Return Type:void


Type Parameter NameRemarks
unsigned int irq
struct irq_desc * desc

Function description:

330  If !Access rules: || low level interrupt hardware access == &Generic no controller implementation then Returning
338  mutex_lock
340  If /proc/irq/ procfs entry then Go to out_unlock
343  set the name to 0
344  sprintf
347  /proc/irq/ procfs entry = proc_mkdir(name, Access rules:)
348  If !/proc/irq/ procfs entry then Go to out_unlock
354  proc_create_data("smp_affinity", 0644, /proc/irq/ procfs entry, &irq_affinity_proc_fops, (void *)(long)irq)
358  proc_create_data("affinity_hint", 0444, /proc/irq/ procfs entry, &irq_affinity_hint_proc_fops, (void *)(long)irq)
362  proc_create_data("smp_affinity_list", 0644, /proc/irq/ procfs entry, &irq_affinity_list_proc_fops, (void *)(long)irq)
365  proc_create_data("node", 0444, /proc/irq/ procfs entry, &irq_node_proc_fops, (void *)(long)irq)
369  proc_create_data("spurious", 0444, /proc/irq/ procfs entry, &irq_spurious_proc_fops, (void *)(long)irq)
371  out_unlock
372  release the mutex
Function NameFunction description
__setup_irqregister an interrupt