ENUM NAND_ECC_ALGO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum nand_ecc_algo(9) β€” like, the NAND ECC algorithm enum, bestie

okay so this is from the Kernel API Manual and it's genuinely one of those little pages that's short but iconic β€” it's the enum that tells you which error-correcting algorithm a NAND device is using. NAND flash is messy (bits flip, it's a whole thing 😭) so ECC is the main character here. Let's get into it 🫢


✨ SYNOPSIS ✨

enum nand_ecc_algo {
    NAND_ECC_ALGO_UNKNOWN ,
    NAND_ECC_ALGO_HAMMING ,
    NAND_ECC_ALGO_BCH ,
    NAND_ECC_ALGO_RS

};

that's it. that's the whole enum. four constants, no cap. πŸ’…


πŸŽ€ Constants πŸŽ€

  • NAND_ECC_ALGO_UNKNOWN β€” literally the "no idea bestie" option. Unknown algorithm πŸ™ˆ
  • NAND_ECC_ALGO_HAMMING β€” the Hamming algorithm. classic, vintage, still serving ✨
  • NAND_ECC_ALGO_BCH β€” the Bose-Chaudhuri-Hocquenghem algorithm. yes that's really the name, and yes it ate πŸ‘‘
  • NAND_ECC_ALGO_RS β€” the Reed-Solomon algorithm. also a full-name baddie, also slay 🌸

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, fr fr β€” all of these live in the kernel file ./include/linux/mtd/nand.h struct:

like I said β€” a lot of besties. go read them all, iykyk πŸ’œ


ngl there are no options, no exit statuses, no env vars on this page β€” it's just the enum and its constants, so don't go looking for plot twists that aren't there πŸ’€

okay that's the whole page, mwah πŸŽ€ sourced from ./include/linux/mtd, dated October 2026, and it's the enum nand_ecc_algo(9) page β€” go forth and correct those bits, bestie βœ¨πŸ¦‹πŸ’–

πŸ“¦ where this page comes from