STRUCT EDAC_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct edac_priv(9) πŸ’–

okay so this is the kernel API manual, bestie β€” welcome to the OCM private instance data page ✨ no cap, that's the whole vibe of the NAME section, and we're gonna walk through it together, i promise it's not scary 🫢


✨ SYNOPSIS ✨

like, here's literally the whole struct, character for character, do not @ me:

struct edac_priv {
    void __iomem *baseaddr;
    char message[ZYNQMP_OCM_EDAC_MSG_SIZE];
    struct ecc_status stat;
    u32 ce_cnt;
    u32 ue_cnt;
  #ifdef CONFIG_EDAC_DEBUG;
    struct dentry *debugfs_dir;
    u8 ce_bitpos;
    u8 ue_bitpos[OCM_NUM_UE_BITPOS];
    u32 fault_injection_cnt;
  #endif;
 };

see that #ifdef CONFIG_EDAC_DEBUG; in the middle? yeah β€” those last four members only exist when that config's on, so keep that in mind, it's giving conditional realness πŸ’…


🌸 Members 🌸

  • baseaddr β€” the base address of the OCM, like the home address of the whole operation 🏠
  • message β€” buffer for framing the event specific info, aka where the ✨lore✨ about what happened gets formatted
  • stat β€” ECC status information, the main character of the status world πŸ‘‘
  • ce_cnt β€” Correctable Error count, keeping tally of the oopsies we can fix πŸ”§
  • ue_cnt β€” Uncorrectable Error count, keeping tally of the oopsies we... cannot 😭
  • debugfs_dir β€” directory entry for debugfs πŸ›βœ¨
  • ce_bitpos β€” bit position for Correctable Error, very precise, very demure πŸŽ€
  • ue_bitpos β€” array to store UnCorrectable Error bit positions, and yes she's an array miss girl πŸ’…
  • fault_injection_cnt β€” Fault Injection Counter value, for when you're out here causing problems on purpose πŸ™ˆπŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

go check out the kernel file ./drivers/edac/zynqmp_edac.c (the source of truth, fr fr) plus these fellow icons:


that's the whole page bestie, you ate that πŸ’– and a lil cute sign-off: this one lives under ./drivers/edac and it's dated October 2026 β€” periodt πŸŒˆβ­πŸ’œ

πŸ“¦ where this page comes from