spi_nor_parse_sccr_mc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_parse_sccr_mc(9) β€” like, the whole vibe πŸ’…

okok so this is a page straight out of the Kernel API Manual, section 9, and it's about spi_nor_parse_sccr_mc. Yes bestie, that's a whole mouthful, but it's literally just this one function and it's not that deep, i promise 🫢


✨ NAME ✨

spi_nor_parse_sccr_mc β€” okay so what it does is parse the Status, Control and Configuration Register Map Offsets for Multi-Chip SPI Memory Devices. no cap, that's the whole job description πŸŽ€


🌸 SYNOPSIS 🌸

int spi_nor_parse_sccr_mc (struct spi_nor *nor , const struct
sfdp_parameter_header *sccr_mc_header );

like, that's the signature, copy it exactly, don't come for me πŸ™ˆ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” pointer to a struct spi_nor. that's your whole flash device vibe right there πŸ”₯
  • sccr_mc_header β€” pointer to the struct sfdp_parameter_header that's describing the SCCR Map offsets table length and its version. it's giving "i know everything about this table" energy πŸ‘‘

πŸ’– RETURN πŸ’–

  • 0 on success πŸŽ‰
  • -errno otherwise 😭 (classic, honestly)

πŸ‘‘ SEE ALSO πŸ‘‘

this is the part where the friend group shows up. all of these live in the kernel file ./drivers/mtd/spi-nor/sfdp.c and honestly? iconic lineup:

and also the kernel file itself: ./drivers/mtd/spi-nor/sfdp.c β€” go read it, i'll wait πŸ’œ


fr fr though, the whole cluster lives under ./drivers/mtd/spi-nor in the kernel tree, and yes that's the same path from the footer, i'm not being shady, it's just facts 🌈

anyway that's the page!! shoutout to the ./drivers/mtd/spi-nor crew, this is the Kernel API Manual edition, dated October 2026 β€” mwah, go touch some registers bestie β­πŸ’…πŸ“

πŸ“¦ where this page comes from