STRUCT SPINAND_MANUFACTURER(9)
π 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 au8, 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 thechipsarray. aconst size_t, so it's locked in, no funny business πopsβ the manufacturer operations. theconst 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:
struct spinand_id(9)struct spinand_devid(9)struct spinand_op_variants(9)struct spinand_ondie_ecc_conf(9)struct spinand_otp_layout(9)struct spinand_fact_otp_ops(9)struct spinand_user_otp_ops(9)struct spinand_fact_otp(9)struct spinand_user_otp(9)enum spinand_bus_interface(9)struct spinand_info(9)struct spinand_mem_ops(9)struct spinand_device(9)mtd_to_spinand(9)spinand_to_mtd(9)nand_to_spinand(9)spinand_to_nand(9)spinand_set_of_node(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms