ENUM SPI_NOR_CMD_EXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

enum spi_nor_cmd_ext(9) β€” describes the command opcode extension in DTR mode. πŸ’…

This lil page is from the Kernel API Manual, and it's giving β€œsmall enum, big DTR energy.” No cap.

✨ SYNOPSIS ✨

enum spi_nor_cmd_ext {
    SPI_NOR_EXT_NONE ,
    SPI_NOR_EXT_REPEAT ,
    SPI_NOR_EXT_INVERT ,
    SPI_NOR_EXT_HEX

};

πŸŽ€ Constants πŸŽ€

Okay so here's the vibe check on each constant, bestie:

  • SPI_NOR_EXT_NONE β€” no extension. This is the default, and it's used in Legacy SPI mode. Periodt.
  • SPI_NOR_EXT_REPEAT β€” the extension is same as the opcode. Literally matching energy.
  • SPI_NOR_EXT_INVERT β€” the extension is the bitwise inverse of the opcode. Flip it and reverse it, iykyk.
  • SPI_NOR_EXT_HEX β€” the extension is any hex value. The command and opcode combine to form a 16-bit opcode. Iconic.

🌈 SEE ALSO 🌈

Kernel file ./include/linux/mtd/spi-nor.h, plus these besties:

  • struct spi_nor_hwcaps(9)
  • struct spi_nor_controller_ops(9)
  • struct spi_nor(9)
  • spi_nor_scan(9)

That's the whole page, bestie 🫢 From ./include/linux/mtd, dated October 2026 β€” Kernel API Manual energy, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from