ENUM NAND_ECC_PLACEMENT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum nand_ecc_placement β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little enum, and honestly? her whole job is just telling you where the ECC bytes live on your NAND. that's it. that's the gig. but it's kind of iconic because you literally cannot place your ECC without her, so let's get into it πŸŽ€


🌸 NAME 🌸

enum nand_ecc_placement β€” the NAND ECC bytes placement. yes queen, she's the one who knows where the spare bytes are hiding πŸ’œ


✨ SYNOPSIS ✨

enum nand_ecc_placement {
    NAND_ECC_PLACEMENT_UNKNOWN ,
    NAND_ECC_PLACEMENT_OOB ,
    NAND_ECC_PLACEMENT_INTERLEAVED

};

three constants, no cap. look at her go 🫢


πŸ¦‹ CONSTANTS πŸ¦‹

  • NAND_ECC_PLACEMENT_UNKNOWN β€” ngl we literally do not know where the ECC bytes are. the actual position is unknown. it's giving mystery, it's giving "ask your driver" πŸ’€
  • NAND_ECC_PLACEMENT_OOB β€” slay, we found them! the ECC bytes are chilling in the OOB area 🌈
  • NAND_ECC_PLACEMENT_INTERLEAVED β€” the syndrome layout bestie 😭 there are ECC bytes interleaved with the regular data, right there in the main area. main character energy, honestly πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the whole friend group, and yes I'm listing every single one of them because nobody gets left behind πŸ’–

the kernel file lives at ./include/linux/mtd/nand.h, and the structs/enums/functions in question are:

go read them, iykyk πŸ’…


ok that's the whole page bestie, no gatekeeping here 🧚

and finally, the cute little sign-off: this one comes from ./include/linux/mtd and it's dated October 2026 β€” so she's a Libra (probably) and she's serving enum nand_ecc_placement(9) realness ⭐ bye pookie, go place some ECC bytes πŸ’œπŸ“

πŸ“¦ where this page comes from