STRUCT EDAC_PRIV(9)
π 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 formattedstatβ 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:
struct ecc_error_info(9)struct ecc_status(9)get_error_info(9)handle_error(9)intr_handler(9)get_eccstate(9)write_fault_count(9)
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
- 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