spi_nor_scan(9)
π 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β thespi_norstructure. 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
- 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