STRUCT SFDP(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct sfdp(9) โ€” the Kernel API Manual, but make it bestie-friendly โœจ

okay so you opened the struct sfdp(9) page, slay, welcome, this is the kernel API manual and today we're talking about one (1) extremely tiny struct that holds SFDP data. it's giving minimal. it's giving "i'm just a little guy". let's get into it ๐ŸŽ€


โœจ NAME โœจ

struct sfdp โ€” SFDP data, that's it, that's the whole vibe ๐Ÿ’–


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

here's the whole struct, and yes it's literally this small, no cap:

struct sfdp {
    size_t num_dwords;
    u32 *dwords;
 };

look at her. iconic. two members. main character energy ๐Ÿ”ฅ


๐ŸŒธ Members ๐ŸŒธ

  • num_dwords โ€” the number of entries in the dwords array. like, how many double words are we talking about here. the count. the census. ๐Ÿงฎ
  • dwords โ€” the actual array of double words of the SFDP data. this is where the data lives. this is the payload, the whole point, the moment ๐Ÿ’…

๐Ÿซถ SEE ALSO ๐Ÿซถ

okay bestie, buckle up, because this is a long list of siblings โ€” they all live in the kernel file ./drivers/mtd/spi-nor/core.h, and honestly they're all pretty obsessed with each other. here's the full crew, no skipping, 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_organization(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 spi_nor_needs_sfdp(9)

like... the whole friend group showed up to the group chat at once ๐Ÿ˜ญ every single one of them, fr fr. go read them, they're all in ./drivers/mtd/spi-nor/core.h. ๐Ÿฆ‹


okay and one lil reminder, since the source says so: the man page lives under ./drivers/mtd/spi-nor, so that's the directory to look at if you're going hunting ๐Ÿงš

๐ŸŒˆ and that's the page!! thank you for coming to my ted talk, go forth and read your SFDP data responsibly. this was the struct sfdp(9) page from the Kernel API Manual, brought to you by the fine folks over at ./drivers/mtd/spi-nor, dated October 2026 โ€” mwah, love u, bye ๐Ÿ’œโœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from