STRUCT SPI_NOR_OTP_ORGANIZATION(9)
β¨ NAME β¨
struct spi_nor_otp_organization β the little struct that describes your SPI NOR OTP regions, bestie π
(this is from the Kernel API Manual, in case u were wondering π«Ά)
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, literally the entire struct, no cap:
struct spi_nor_otp_organization {
size_t len;
loff_t base;
loff_t offset;
unsigned int n_regions;
};
that's it. that's the whole icon. β¨
π Members π
girl these fields are the main characters, let's go one by one:
lenβ size of one OTP region, in bytes. yes, one region, not all of them πbaseβ the start address of the OTP area. where it all begins πoffsetβ the offset between consecutive OTP regions, but only if there's more than one of them. if there's just one, this queen does nothing π¦n_regionsβ how many individual OTP regions there are. the headcount π₯
π SEE ALSO π
go look at the kernel file ./drivers/mtd/spi-nor/core.h for the full lore, and also these besties (all (9) sections, iykyk):
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_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 spi_nor_manufacturer(9)struct sfdp(9)spi_nor_needs_sfdp(9)
ok that's the whole page, go read the source at ./drivers/mtd/spi-nor if u want more, mwah π
and that's a wrap!! this was the Kernel API Manual entry for struct spi_nor_otp_organization(9), living in ./drivers/mtd/spi-nor, dated October 2026 β 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