ENUM EDAC_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 bestie
  • EDAC_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