spi_nor_chec...dp_signature(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_chec...dp_signature(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil function from the kernel, and the truncated name up there is literally just the vibe β€” the real one is spi_nor_check_sfdp_signature. let's get into it 🫢


🌸 NAME 🌸

spi_nor_check_sfdp_signature β€” the lil detective that checks for a valid SFDP signature πŸ”βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

int spi_nor_check_sfdp_signature (struct spi_nor *nor );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” pointer to a struct spi_nor. that's it, that's the whole argument list, she's low maintenance πŸ’…

✨ DESCRIPTION ✨

so what does she do? this function is used to detect two things, and honestly she ate:

  • whether the flash actually supports the RDSFDP command πŸ‘‘
  • and whether there's a valid SFDP table present in there 🌈

both checks, one function. main character energy fr fr πŸ’–


πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸŽ‰
  • -errno otherwise 😭 (classic kernel behavior, no cap)

πŸ’œ SEE ALSO πŸ’œ

the kernel file lives at ./drivers/mtd/spi-nor/sfdp.c β€” go say hi 🧚

and here's the whole bestie group chat, every single one of them:

like, that's a whole friend group and they all live in ./drivers/mtd/spi-nor πŸ’€πŸ’–


and that's the page bestie!! source path ./drivers/mtd/spi-nor, dated October 2026 β€” periodt, go read some SFDP tables, ily πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from