eeh_pe_inject_err(9)
π eeh_pe_inject_err(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for eeh_pe_inject_err β yes that's a lot of letters, no I will not be pronouncing it out loud, but I will explain it because it's genuinely kinda iconic π
πΈ NAME πΈ
eeh_pe_inject_err β injecting the specified PCI error to the indicated PE π«Ά
β SYNOPSIS β
int eeh_pe_inject_err (struct eeh_pe *pe , int type , int func ,
unsigned long addr , unsigned long mask );
like, that's the whole vibe check right there. it returns an int, it takes five things, we move π
π¦ ARGUMENTS π¦
peβ the indicated PE. that's the one getting the whole treatment πtypeβ error type. which flavor of oops are we serving today πfuncβ error function. the specific function of the error, yk how it isaddrβ address. where the drama happens πmaskβ address mask. the address's little filter bestie π
π₯ DESCRIPTION π₯
so the way this works: this routine gets called to inject the specified PCI error β and which error that is? that's decided by type and func, no cap β straight into the indicated PE. and why?? for testing purpose, obviously π like we're stress-testing the thing on purpose, main character energy fr fr.
ngl this is a "poke it and see what happens, but on purpose" situation β it's literally in the description that it's for testing, so don't come for me if you inject an error somewhere you didn't mean to π
π SEE ALSO π
kernel file ./arch/powerpc/kernel/eeh.c, plus the whole friend group:
eeh_slot_error_detail(9)eeh_token_to_phys(9)eeh_dev_check_failure(9)eeh_check_failure(9)eeh_pci_enable(9)pcibios_set_pcie_reset_state(9)eeh_set_dev_freset(9)eeh_pe_reset_full(9)eeh_save_bars(9)eeh_init(9)eeh_probe_device(9)eeh_remove_device(9)eeh_dev_open(9)eeh_dev_release(9)eeh_iommu_group_to_pe(9)eeh_pe_set_option(9)eeh_pe_get_state(9)eeh_pe_reset(9)eeh_pe_configure(9)
like ok go read them too, iykyk πβ¨
and that's the page!! sourced from ./arch/powerpc/kernel π§ dated October 2026 π bye bestie, go inject some errors responsibly π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms