STRUCT PLATFORM_NAND_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct platform_nand_chip(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” we're looking at struct platform_nand_chip, and it is literally the chip level device structure, no cap ✨


πŸŽ€ NAME πŸŽ€

struct platform_nand_chip β€” chip level device structure πŸ’–

✨ SYNOPSIS ✨

       struct platform_nand_chip {
           int nr_chips;
           int chip_offset;
           int nr_partitions;
           struct mtd_partition *partitions;
           int chip_delay;
           unsigned int options;
           unsigned int bbt_options;
           const char **part_probe_types;
        };

🌸 Members 🌸

  • nr_chips β€” max. number of chips to scan for πŸ”₯ literally the upper limit on how many chips you're scanning for, bestie.
  • chip_offset β€” chip number offset ✨ it's the offset for the chip number, periodt.
  • nr_partitions β€” number of partitions pointed to by partitions (or zero) πŸŽ€ so how many partitions partitions points at, or 0 if there are none.
  • partitions β€” mtd partition list πŸ¦‹ the actual list of mtd partitions.
  • chip_delay β€” R/B delay value in us ⏳ yes, R/B delay value, measured in us.
  • options β€” Option flags, e.g. 16bit buswidth πŸ‘‘ option flags go here, like 16bit buswidth.
  • bbt_options β€” BBT option flags, e.g. NAND_BBT_USE_FLASH πŸ’… BBT option flags live here too, like NAND_BBT_USE_FLASH.
  • part_probe_types β€” NULL-terminated array of probe types 🧚 a NULL-terminated array of probe types, iykyk.

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/mtd/platnand.h
  • struct platform_nand_ctrl(9)
  • struct platform_nand_data(9)

mwah πŸ’‹ this page is from ./include/linux/mtd, dated October 2026, for struct platform_nand_chip(9) β€” bye bestie, slay responsibly 🫢

πŸ“¦ where this page comes from