arch/mips/kernel/irq.c
Source file repositories/reference/linux-study-clean/arch/mips/kernel/irq.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/kernel/irq.c- Extension
.c- Size
- 2672 bytes
- Lines
- 120
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: implementation source
- Status
- source 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/delay.hlinux/init.hlinux/interrupt.hlinux/kernel_stat.hlinux/proc_fs.hlinux/mm.hlinux/random.hlinux/sched.hlinux/seq_file.hlinux/kallsyms.hlinux/kgdb.hlinux/ftrace.hlinux/irqdomain.hlinux/atomic.hlinux/uaccess.h
Detected Declarations
function ack_bad_irqfunction arch_show_interruptsfunction spurious_interruptfunction init_IRQfunction for_each_possible_cpufunction check_stack_overflowfunction check_stack_overflowfunction do_domain_IRQ
Annotated Snippet
static inline void check_stack_overflow(void) {}
#endif
/*
* do_IRQ handles all normal device IRQ's (the special
* SMP cross-CPU interrupts have their own specific
* handlers).
*/
asmlinkage void __irq_entry do_IRQ(unsigned int irq)
{
irq_enter();
check_stack_overflow();
generic_handle_irq(irq);
irq_exit();
}
#ifdef CONFIG_IRQ_DOMAIN
void __irq_entry do_domain_IRQ(struct irq_domain *domain, unsigned int hwirq)
{
irq_enter();
check_stack_overflow();
generic_handle_domain_irq(domain, hwirq);
irq_exit();
}
#endif
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/delay.h`, `linux/init.h`, `linux/interrupt.h`, `linux/kernel_stat.h`, `linux/proc_fs.h`, `linux/mm.h`, `linux/random.h`.
- Detected declarations: `function ack_bad_irq`, `function arch_show_interrupts`, `function spurious_interrupt`, `function init_IRQ`, `function for_each_possible_cpu`, `function check_stack_overflow`, `function check_stack_overflow`, `function do_domain_IRQ`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.