get_ecc_state(9)
π¦ get_ecc_state π¦
okay so bestie, you're in the Kernel API Manual β section 9, yes β and today's main character is get_ecc_state. She returns the controller ECC enable/disable status, and the way she does it is lowkey iconic. Let's get into the lore. π
β¨ NAME β¨
get_ecc_state β returns the controller ECC enable/disable status. That's the whole name, no cap. She ate. π
πΈ SYNOPSIS πΈ
bool get_ecc_state (void __iomem *base );
That's the signature, bestie. bool return type, one void __iomem * argument. Keep the spacing exactly like that β it's part of the vibe. π
π«Ά ARGUMENTS π«Ά
baseβ the DDR memory controller base address. That's the base address of the DDR memory controller, and that's what you pass in. Simple. β¨
π DESCRIPTION π
Okay so the assignment: get_ecc_state gets the ECC enable/disable status for the controller. That's literally it. She fetches the status, you get the tea. Not me being obsessed with a one-line function, but here we are. β
π₯ RETURN π₯
She returns a ECC status boolean β i.e. true/false, which means enabled/disabled. So true = enabled, false = disabled. Both are valid booleans, both are valid vibes. π
π SEE ALSO π
The whole squad is here, and they all live in the kernel file ./drivers/edac/versal_edac.c:
union ecc_error_info(9)struct ecc_status(9)struct edac_priv(9)convert_to_physical(9)handle_error(9)err_callback(9)get_dwidth(9)get_memsize(9)init_csrows(9)mc_init(9)poison_setup(9)setup_address_map(9)
That's twelve friends, bestie. Go read them, iykyk. π«Ά
mwah π β this page comes from ./drivers/edac, dated October 2026, and it's get_ecc_state(9). Bye bestie, stay enabled! π
π¦ 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