arch/sh/kernel/irq.c
Source file repositories/reference/linux-study-clean/arch/sh/kernel/irq.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/kernel/irq.c- Extension
.c- Size
- 5928 bytes
- Lines
- 250
- Domain
- Architecture Layer
- Bucket
- arch/sh
- 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/irq.hlinux/interrupt.hlinux/module.hlinux/kernel_stat.hlinux/seq_file.hlinux/ftrace.hlinux/delay.hlinux/ratelimit.hasm/processor.hasm/machvec.hlinux/uaccess.hasm/thread_info.hcpu/mmu_context.hasm/softirq_stack.h
Detected Declarations
function ack_bad_irqfunction arch_show_interruptsfunction handle_one_irqfunction stackfunction irq_ctx_initfunction irq_ctx_exitfunction do_softirq_own_stackfunction handle_one_irqfunction do_IRQfunction init_IRQfunction migrate_irqsfunction for_each_active_irq
Annotated Snippet
if (irq_data_get_node(data) == cpu) {
const struct cpumask *mask = irq_data_get_affinity_mask(data);
unsigned int newcpu = cpumask_any_and(mask,
cpu_online_mask);
if (newcpu >= nr_cpu_ids) {
pr_info_ratelimited("IRQ%u no longer affine to CPU%u\n",
irq, cpu);
irq_set_affinity(irq, cpu_all_mask);
} else {
irq_set_affinity(irq, mask);
}
}
}
}
#endif
Annotation
- Immediate include surface: `linux/irq.h`, `linux/interrupt.h`, `linux/module.h`, `linux/kernel_stat.h`, `linux/seq_file.h`, `linux/ftrace.h`, `linux/delay.h`, `linux/ratelimit.h`.
- Detected declarations: `function ack_bad_irq`, `function arch_show_interrupts`, `function handle_one_irq`, `function stack`, `function irq_ctx_init`, `function irq_ctx_exit`, `function do_softirq_own_stack`, `function handle_one_irq`, `function do_IRQ`, `function init_IRQ`.
- Atlas domain: Architecture Layer / arch/sh.
- 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.