spi_nor_scan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

spi_nor_scan β€” scan the SPI NOR

okay so welcome to the spi_nor_scan(9) page from the Kernel API Manual, bestie πŸ’– this one is literally about scanning the SPI NOR, and it's lowkey iconic. no cap.


✨ SYNOPSIS ✨

int spi_nor_scan (struct spi_nor *nor , const char *name , const struct
spi_nor_hwcaps *hwcaps );

🫢 ARGUMENTS 🫢

  • nor β€” the spi_nor structure. your main character struct, fr fr πŸ’…
  • name β€” the chip type name. yes, the chip's type name, bestie πŸŽ€
  • hwcaps β€” the hardware capabilities supported by the controller driver. it's giving controller-driver support vibes ✨

🌸 DESCRIPTION 🌸

Drivers can use this function to scan the SPI NOR. In the scanning, it will try to get all the necessary information to fill the mtd_info{} and the spi_nor{}. like, it's gathering the info it needs to fill those structs, periodt 🫢

The chip type name can be provided through the name parameter. so if you've got the chip type name, that's where it goes, iykyk πŸ’–

πŸ’« RETURN πŸ’«

0 for success, others for failure. that's it, that's the vibe check: zero means slay, anything else means nope 😭

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/mtd/spi-nor.h
  • struct spi_nor_hwcaps(9)
  • struct spi_nor_controller_ops(9)
  • enum spi_nor_cmd_ext(9)
  • struct spi_nor(9)

xoxo, your kernel bestie πŸ’– this page came from ./include/linux/mtd, dated October 2026, and it's still spi_nor_scan(9), periodt πŸŽ€

πŸ“¦ where this page comes from