STRUCT NAND_MEMORY_ORGANIZATION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct nand_memory_organization(9) πŸŽ€

Okay bestie, welcome to the Kernel API Manual entry for struct nand_memory_organization β€” literally the Memory organization structure, and it's giving blueprint energy. No cap, this is the vibe check for how NAND memory is laid out. πŸ’…βœ¨


πŸ’– NAME πŸ’–

struct nand_memory_organization β€” the Memory organization structure. It's iconic, it's organized, and it's here to hold all the layout details. 🫢


🌈 SYNOPSIS 🌈

       struct nand_memory_organization {
           unsigned int bits_per_cell;
           unsigned int pagesize;
           unsigned int oobsize;
           unsigned int pages_per_eraseblock;
           unsigned int eraseblocks_per_lun;
           unsigned int max_bad_eraseblocks_per_lun;
           unsigned int planes_per_lun;
           unsigned int luns_per_target;
           unsigned int ntargets;
        };

🌸 Members 🌸

Every field is here, bestie β€” no skipping, no summarizing, periodt. πŸ’–

  • bits_per_cell β€” number of bits per NAND cell. Literally how many bits each cell holds. ✨
  • pagesize β€” page size. That's the page size, no cap. πŸŽ€
  • oobsize β€” OOB area size. Yep, the out-of-band area's size. πŸ¦‹
  • pages_per_eraseblock β€” number of pages per eraseblock. The way that pages stack inside an eraseblock is iconic. πŸ’…
  • eraseblocks_per_lun β€” number of eraseblocks per LUN (Logical Unit Number). LUN said what it said. πŸ‘‘
  • max_bad_eraseblocks_per_lun β€” maximum number of bad eraseblocks per LUN. Bad blocks get a max, fr fr. πŸ’€
  • planes_per_lun β€” number of planes per LUN. Planes within a LUN, slay. 🌈
  • luns_per_target β€” number of LUN per target (target is a synonym for die). Iykyk. 🎲
  • ntargets β€” total number of targets exposed by the NAND device. The whole target count, periodt. ⭐

πŸ‘‘ SEE ALSO πŸ‘‘

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

Peep these related entries too β€” all of them, bestie πŸ’œ:


Source/version: ./include/linux/mtd 🫢 Date: October 2026 🫢 Page: struct nand...organization(9). Bye bestie, go organize that memory πŸ’–βœ¨

πŸ“¦ where this page comes from