spi_nor_chec...dp_signature(9)
π 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 astruct 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
RDSFDPcommand π - and whether there's a valid SFDP table present in there π
both checks, one function. main character energy fr fr π
π₯ RETURN π₯
0on success π-errnootherwise π (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:
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_parse_sccr_mc(9)spi_nor_post_sfdp_fixups(9)spi_nor_parse_sfdp(9)
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
- 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