STRUCT NAND_POS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the struct nand_pos(9) page from the Kernel API Manual ✨. This is the NAND position object, and she has main character energy: she’s the little struct that tells you where you are in NAND land. No cap. πŸŽ€

🌸 NAME 🌸

struct nand_pos β€” NAND position object. That’s the name, and she ate. πŸ’…


✨ SYNOPSIS ✨

here’s the struct in all her glory β€” every field is an unsigned int, and yes, we’re keeping the layout exactly as the page says, bestie. πŸ’–

struct nand_pos {
    unsigned int target;
    unsigned int lun;
    unsigned int plane;
    unsigned int eraseblock;
    unsigned int page;
 };

πŸŽ€ Members πŸŽ€

okay, member-by-member tour, no skips: 🫢

  • target β€” the NAND target/die. iykyk.
  • lun β€” the LUN identifier.
  • plane β€” the plane within the LUN.
  • eraseblock β€” the eraseblock within the LUN.
  • page β€” the page within the LUN.

πŸ’– Description πŸ’–

this info is usually used by specific sub-layers to select the appropriate target/die and generate a row address to pass to the device. So yeah, she’s the little location bundle that helps those layers do their thing β€” no cap, it’s giving very necessary. πŸ¦‹


πŸ¦‹ SEE ALSO πŸ¦‹

okay bestie, this is the extended cinematic universe β€” every reference is here, no skips, fr fr: 🌈

mwah πŸ’‹ this page says goodnight from ./include/linux/mtd, dated October 2026. go be iconic with your NAND positions, bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from