STRUCT SFDP(9)
๐ 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 thedwordsarray. 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
- 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