STRUCT SPI_NOR_MANUFACTURER(9)
π struct spi_nor_manufacturer(9) π
okay so bestie, welcome to the Kernel API Manual β this little cutie right here is struct spi_nor_manufacturer(9), and it's literally the glow-up makeover of a manufacturer object for SPI NOR flash. think of it as the main character ID card that tells the kernel "hi yes this chip company exists, here's their whole lineup, k thanks π«Ά"
β¨ NAME β¨
struct spi_nor_manufacturer β the SPI NOR manufacturer object, no cap π
πΈ SYNOPSIS πΈ
struct spi_nor_manufacturer {
const char *name;
const struct flash_info *parts;
unsigned int nparts;
const struct spi_nor_fixups *fixups;
};
π Members π
nameβ the manufacturer's name. just the name, bestie. the whole brand identity β¨partsβ an array of the parts this manufacturer supports. like their entire roster of chips, all lined up πnpartsβ how many entries are chilling in thatpartsarray. the headcount, fr fr π’fixupsβ hooks that get called at various points in time duringspi_nor_scan. yes, hooks. they show up mid-scan to do their little fixes, iykyk π§
ngl, thatfixupsfield is the one with main character energy β it literally gets invoked at various points duringspi_nor_scan, so don't sleep on it π«Ά
π¦ SEE ALSO π¦
Kernel file ./drivers/mtd/spi-nor/core.h β that's where the lore lives π
and the whole friend group:
struct spi_nor_erase_type(9)struct spi_nor_erase_command(9)struct spi_nor_erase_region(9)struct spi_nor_erase_map(9)struct spi_nor_locking_ops(9)struct spi_nor_otp_organization(9)struct spi_nor_otp_ops(9)struct spi_nor_otp(9)struct spi_nor_flash_parameter(9)struct spi_nor_fixups(9)struct spi_nor_id(9)struct flash_info(9)struct sfdp(9)spi_nor_needs_sfdp(9)
that's the whole vibe check, bestie π this page came straight from ./drivers/mtd/spi-nor, dated October 2026, and it's part of the Kernel API Manual β slay, go read the other structs now, periodt ππ
π¦ 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