spi_nor_parse_sfdp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_parse_sfdp(9) β€” Kernel API Manual πŸ’…

πŸ’– NAME πŸ’–

spi_nor_parse_sfdp β€” parse the Serial Flash Discoverable Parameters ✨


✨ SYNOPSIS ✨

okay so the signature is literally:

int spi_nor_parse_sfdp (struct spi_nor *nor );

πŸŽ€ ARGUMENTS πŸŽ€

  • nor β€” pointer to a struct spi_nor πŸ‘€. That's the whole argument, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the Serial Flash Discoverable Parameters are described by the JEDEC JESD216 specification πŸ’…. This is a standard which tends to be supported by almost all (Q)SPI memory manufacturers 🫢. Those hard-coded tables let us learn at runtime the main parameters needed to perform basic SPI flash operations, such as Fast Read, Page Program, or Sector Erase commands 🌸.


πŸ”₯ RETURN πŸ”₯

0 on success, -errno otherwise πŸ’–. That's the whole mood.


🌈 SEE ALSO 🌈

πŸ’– xoxo, your kernel bestie β€” source: ./drivers/mtd/spi-nor, date: October 2026, page: spi_nor_parse_sfdp(9) ✨

πŸ“¦ where this page comes from