arch/riscv/kernel/irq.c
Source file repositories/reference/linux-study-clean/arch/riscv/kernel/irq.c
File Facts
- System
- Linux kernel
- Corpus path
arch/riscv/kernel/irq.c- Extension
.c- Size
- 3793 bytes
- Lines
- 157
- Domain
- Architecture Layer
- Bucket
- arch/riscv
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hlinux/irqchip.hlinux/irqdomain.hlinux/module.hlinux/scs.hlinux/seq_file.hasm/sbi.hasm/smp.hasm/softirq_stack.hasm/stacktrace.hasm/irq_stack.h
Detected Declarations
function riscv_set_intc_hwnode_fnfunction riscv_get_hart_indexfunction init_irq_scsfunction for_each_possible_cpufunction init_irq_stacksfunction for_each_possible_cpufunction init_irq_stacksfunction ___do_softirqfunction do_softirq_own_stackfunction init_irq_scsfunction init_IRQexport riscv_get_intc_hwnode
Annotated Snippet
static void __init init_irq_scs(void) {}
static void __init init_irq_stacks(void) {}
#endif /* CONFIG_IRQ_STACKS */
int arch_show_interrupts(struct seq_file *p, int prec)
{
show_ipi_stats(p, prec);
return 0;
}
void __init init_IRQ(void)
{
init_irq_scs();
init_irq_stacks();
irqchip_init();
if (!handle_arch_irq)
panic("No interrupt controller found.");
sbi_ipi_init();
}
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/irqchip.h`, `linux/irqdomain.h`, `linux/module.h`, `linux/scs.h`, `linux/seq_file.h`, `asm/sbi.h`, `asm/smp.h`.
- Detected declarations: `function riscv_set_intc_hwnode_fn`, `function riscv_get_hart_index`, `function init_irq_scs`, `function for_each_possible_cpu`, `function init_irq_stacks`, `function for_each_possible_cpu`, `function init_irq_stacks`, `function ___do_softirq`, `function do_softirq_own_stack`, `function init_irq_scs`.
- Atlas domain: Architecture Layer / arch/riscv.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.