get_ecc_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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:

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