arch/mips/sgi-ip27/ip27-nmi.c
Source file repositories/reference/linux-study-clean/arch/mips/sgi-ip27/ip27-nmi.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/sgi-ip27/ip27-nmi.c- Extension
.c- Size
- 5527 bytes
- Lines
- 232
- 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/mmzone.hlinux/nodemask.hlinux/spinlock.hlinux/smp.hlinux/atomic.hasm/sn/types.hasm/sn/addrs.hasm/sn/nmi.hasm/sn/arch.hasm/sn/agent.hip27-common.h
Detected Declarations
function install_cpu_nmi_handlerfunction nmi_cpu_eframe_savefunction nmi_dump_hub_irqfunction nmi_node_eframe_savefunction nmi_eframes_savefunction nmi_dump
Annotated Snippet
if (i == 1000) {
for_each_online_node(node)
if (NODEPDA(node)->dump_count == 0) {
cpu = cpumask_first(cpumask_of_node(node));
for (n=0; n < CNODE_NUM_CPUS(node); cpu++, n++) {
CPUMASK_SETB(nmied_cpus, cpu);
/*
* cputonasid, cputoslice
* needs kernel cpuid
*/
SEND_NMI((cputonasid(cpu)), (cputoslice(cpu)));
}
}
}
udelay(10000);
}
#else
while (atomic_read(&nmied_cpus) != num_online_cpus());
#endif
/*
* Save the nmi cpu registers for all cpu in the eframe format.
*/
nmi_eframes_save();
LOCAL_HUB_S(NI_PORT_RESET, NPR_PORTRESET | NPR_LOCALRESET);
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/mmzone.h`, `linux/nodemask.h`, `linux/spinlock.h`, `linux/smp.h`, `linux/atomic.h`, `asm/sn/types.h`, `asm/sn/addrs.h`.
- Detected declarations: `function install_cpu_nmi_handler`, `function nmi_cpu_eframe_save`, `function nmi_dump_hub_irq`, `function nmi_node_eframe_save`, `function nmi_eframes_save`, `function nmi_dump`.
- 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.