spi_nor_parse_sccr_mc(9)
π 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 astruct spi_nor. that's your whole flash device vibe right there π₯sccr_mc_headerβ pointer to thestruct sfdp_parameter_headerthat's describing the SCCR Map offsets table length and its version. it's giving "i know everything about this table" energy π
π RETURN π
0on success π-errnootherwise π (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:
spi_nor_read_raw(9)spi_nor_read_sfdp(9)spi_nor_read_sfdp_dma_unsafe(9)spi_nor_set_erase_settings_from_bfpt(9)spi_nor_map_cmp_erase_type(9)spi_nor_sort_erase_mask(9)spi_nor_regions_sort_erase_types(9)spi_nor_parse_bfpt(9)spi_nor_smpt_addr_nbytes(9)spi_nor_smpt_read_dummy(9)spi_nor_get_map_in_use(9)spi_nor_region_check_overlay(9)spi_nor_init_non_uniform_erase_map(9)spi_nor_parse_smpt(9)spi_nor_parse_4bait(9)spi_nor_parse_profile1(9)spi_nor_parse_sccr(9)spi_nor_post_sfdp_fixups(9)spi_nor_check_sfdp_signature(9)spi_nor_parse_sfdp(9)
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
- 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