ENUM EDAC_TYPE(9)
π enum edac_type(9) π
okay so this is from the Kernel API Manual (yes, the enum edac_type(9) page, we're doing this) and it's all about Error Detection and Correction β ECC for short β and literally every capability + mode the kernel knows about. bestie, this is the cheat sheet for "what kind of memory error protection are we even talking about" π¦
β¨ NAME β¨
enum edac_type β Error Detection and Correction capabilities and mode π«Ά
πΈ SYNOPSIS πΈ
enum edac_type {
EDAC_UNKNOWN ,
EDAC_NONE ,
EDAC_RESERVED ,
EDAC_PARITY ,
EDAC_EC ,
EDAC_SECDED ,
EDAC_S2ECD2ED ,
EDAC_S4ECD4ED ,
EDAC_S8ECD8ED ,
EDAC_S16ECD16ED
};
like, that's the whole roster. no cap. π
π Constants π
okay let's meet the cast, one by one π
EDAC_UNKNOWNβ honestly? no idea. we don't know if ECC is even available here πEDAC_NONEβ nope, this one straight up doesn't support ECC. not its era πEDAC_RESERVEDβ a reserved ECC type. it's giving "held for later, don't touch" β¨EDAC_PARITYβ detects parity errors. detection only, it's not fixing anything, just pointing at the problem πEDAC_ECβ Error Checking, and that's it β no correction. spots the drama, doesn't resolve it πEDAC_SECDEDβ Single bit error correction, Double detection. the classic. iconic. corrects one, catches two π₯EDAC_S2ECD2EDβ Chipkill x2 devices β and honestly the manpage itself is like "do these exist?" π we're all asking the same question bestieEDAC_S4ECD4EDβ Chipkill x4 devices πEDAC_S8ECD8EDβ Chipkill x8 devices βEDAC_S16ECD16EDβ Chipkill x16 devices π
π¦ SEE ALSO π¦
all of these live in the Kernel file ./include/linux/edac.h β go read the whole friend group π
enum dev_type(9)enum hw_event_mc_err_type(9)enum mem_type(9)enum scrub_type(9)enum edac_mc_layer_type(9)struct edac_mc_layer(9)struct rank_info(9)struct edac_raw_error_desc(9)edac_get_dimm(9)struct edac_scrub_ops(9)struct edac_ecs_ops(9)struct edac_mem_repair_ops(9)
lowkey a whole family reunion in one header file, and you're invited π§
and that's the page!! mwah π β this little drop comes from ./include/linux, dated October 2026, and it's the enum edac_type(9) page, so go forth and correct those single bits, bestie ππΈπ
π¦ 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