STRUCT SPI_NOR_OTP_OPS(9)
π 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
- 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