eeh_pe_inject_err(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is
  • addr β€” 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:

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