STRUCT SPINAND_MANUFACTURER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct spinand_manufacturer(9) β€” Kernel API Manual

okay bestie, welcome to the kernel API manual, we're doing structs today and honestly? this one is kind of a vibe. it lives in the <mint>Kernel API Manual</mint> and it's all about SPI NAND manufacturers. yes, that SPI NAND. iykyk πŸ¦‹


✨ NAME ✨

struct spinand_manufacturer β€” the SPI NAND manufacturer instance, aka the little record that says "hi i'm a chip vendor and here's my whole lineup" πŸ’–


🌸 SYNOPSIS 🌸

struct spinand_manufacturer {
    u8 id;
    char *name;
    const struct spinand_info *chips;
    const size_t nchips;
    const struct spinand_manufacturer_ops *ops;
 };

like, look at her. five fields. main character energy, no notes. πŸ‘‘


πŸŽ€ Members πŸŽ€

okay so let's go field by field, this is the good part:

  • id β€” the manufacturer ID. that's it, that's the field. it's a u8, it's the ID, it's giving "i'm the identifier bestie" πŸ“
  • name β€” the manufacturer name. literally just the name of the manufacturer. sometimes things are exactly what they say they are πŸ’…
  • chips β€” all the supported SPI NANDs under the current manufacturer. this is your roster, your lineup, your whole squad of chips πŸ”₯
  • nchips β€” how many SPI NANDs are actually available in the chips array. a const size_t, so it's locked in, no funny business πŸ’€
  • ops β€” the manufacturer operations. the const struct spinand_manufacturer_ops * that does the doing 🫢
ngl, every single one of these is a const pointer situation except like, the obvious ones. respect the const, bestie. respect her. ✨

🌈 SEE ALSO 🌈

so like, if you wanna go down the rabbit hole (and you do), the kernel file is ./include/linux/mtd/spinand.h and it's full of friends:

not me listing all eighteen of them like a stan listing their faves 😭 but fr fr, they're all family, go read them too πŸ’œ


and that's the page!! 🧚 sourced from ./include/linux/mtd (that's the source/version, mwah) and dated October 2026 β€” struct spinand_manufacturer(9), slay, bye bestie!! πŸ‘‘πŸ’–

πŸ“¦ where this page comes from