STRUCT SPI_NOR_OTP_ORGANIZATION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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