STRUCT SPI_NOR_OTP_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual page for struct spi_nor_otp_ops(9) β€” it's literally the SPI NOR OTP methods struct, aka struct spi_nor_otp_ops - SPI NOR OTP methods, and it's giving tiny bundle of OTP method pointers. slay. πŸ’…

✨ SYNOPSIS ✨

here's the whole struct, exactly as written, no edits, no cap:

struct spi_nor_otp_ops {
    int (*read)(struct spi_nor *nor, loff_t addr, size_t len, u8 *buf);
    int (*write)(struct spi_nor *nor, loff_t addr, size_t len, const u8
*buf);
    int (*lock)(struct spi_nor *nor, unsigned int region);
    int (*erase)(struct spi_nor *nor, loff_t addr);
    int (*is_locked)(struct spi_nor *nor, unsigned int region);
 };

πŸŽ€ Members πŸŽ€

  • read β€” read from the SPI NOR OTP area. πŸ“–
  • write β€” write to the SPI NOR OTP area. ✍️
  • lock β€” lock an OTP region. πŸ”’
  • erase β€” erase an OTP region. 🧽
  • is_locked β€” check if an OTP region of the SPI NOR is locked. πŸ”

🌈 SEE ALSO 🌈

Kernel file: ./drivers/mtd/spi-nor/core.h β€” yes bestie, that exact path, go look πŸ‘€

  • 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(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)

mwah πŸ’‹ this page came from source/version ./drivers/mtd/spi-nor, dated October 2026, and it's all about struct spi_nor_otp_ops(9) β€” bye bestie, go read the kernel source 🫢

πŸ“¦ where this page comes from