STRUCT NAND_ECC_PROPS(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct nand_ecc_props(9) ๐Ÿ’…

okay so bestie, welcome to the Kernel API Manual โ€” yes that's the manual name, we're fancy now ๐ŸŽ€ โ€” and today's main character is struct nand_ecc_props, aka the little struct that holds all your NAND ECC properties. she's giving config-glamour, no cap โœจ


๐ŸŒธ NAME ๐ŸŒธ

struct nand_ecc_props โ€” NAND ECC properties, literally the vibe check for your error correction ๐Ÿ’–


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

here's the whole glow-up, copy it exactly bestie, don't touch a single character:

struct nand_ecc_props {
    enum nand_ecc_engine_type engine_type;
    enum nand_ecc_placement placement;
    enum nand_ecc_algo algo;
    unsigned int strength;
    unsigned int step_size;
    unsigned int flags;
 };

look at her. six fields. absolutely iconic ๐Ÿ‘‘


โœจ Members โœจ

okay so let's meet the cast, one by one ๐Ÿซถ

  • engine_type โ€” the ECC engine type, like which engine is driving this whole thing ๐Ÿš—
  • placement โ€” the OOB placement (if relevant, so don't come for me if it's not) ๐Ÿ“
  • algo โ€” the ECC algorithm (if relevant โ€” again, conditional, iykyk) ๐Ÿงฎ
  • strength โ€” the ECC strength. how strong. ๐Ÿ’ช
  • step_size โ€” number of bytes per step, so you know how big each step is ๐Ÿ‘Ÿ
  • flags โ€” misc properties, the little extras, the garnish of the struct ๐ŸŒฟ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

the whole extended friend group ๐Ÿ’œ first up, the source of truth:

  • Kernel file ./include/linux/mtd/nand.h

and then the entourage, in the original order because I would never do them dirty like that ๐Ÿ˜ญ

like I said. whole friend group. go say hi ๐Ÿฆ‹


ok that's the whole page bestie, nothing skipped, every last reference accounted for โ€” read it, love it, man it ๐Ÿ’…

and finally, the cute sign-off: this lil beauty lives in ./include/linux/mtd, dated October 2026, and yes the page title is still struct nand_ecc_props(9) because she's the main character, periodt ๐ŸŒˆ๐Ÿ’–

๐Ÿ“ฆ where this page comes from