arch/powerpc/sysdev/fsl_mpic_err.c
Source file repositories/reference/linux-study-clean/arch/powerpc/sysdev/fsl_mpic_err.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/sysdev/fsl_mpic_err.c- Extension
.c- Size
- 3488 bytes
- Lines
- 143
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/irq.hlinux/smp.hlinux/interrupt.hlinux/irqdomain.hasm/io.hasm/irq.hasm/mpic.hmpic.h
Detected Declarations
function Copyrightfunction mpic_fsl_err_writefunction fsl_mpic_mask_errfunction fsl_mpic_unmask_errfunction mpic_setup_error_intfunction mpic_map_error_intfunction fsl_error_int_handlerfunction mpic_err_int_init
Annotated Snippet
if (WARN_ON(ret)) {
eimr |= 1 << (31 - errint);
mpic_fsl_err_write(mpic->err_regs, eimr);
}
eisr &= ~(1 << (31 - errint));
}
return IRQ_HANDLED;
}
void __init mpic_err_int_init(struct mpic *mpic, irq_hw_number_t irqnum)
{
unsigned int virq;
int ret;
virq = irq_create_mapping(mpic->irqhost, irqnum);
if (!virq) {
pr_err("Error interrupt setup failed\n");
return;
}
/* Mask all error interrupts */
mpic_fsl_err_write(mpic->err_regs, ~0);
ret = request_irq(virq, fsl_error_int_handler, IRQF_NO_THREAD,
"mpic-error-int", mpic);
if (ret)
pr_err("Failed to register error interrupt handler\n");
}
Annotation
- Immediate include surface: `linux/irq.h`, `linux/smp.h`, `linux/interrupt.h`, `linux/irqdomain.h`, `asm/io.h`, `asm/irq.h`, `asm/mpic.h`, `mpic.h`.
- Detected declarations: `function Copyright`, `function mpic_fsl_err_write`, `function fsl_mpic_mask_err`, `function fsl_mpic_unmask_err`, `function mpic_setup_error_int`, `function mpic_map_error_int`, `function fsl_error_int_handler`, `function mpic_err_int_init`.
- Atlas domain: Architecture Layer / arch/powerpc.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.