spi_nor_init...rm_erase_map(9)
okay so bestie, welcome to the spi_nor_init...rm_erase_map(9) page from the Kernel API Manual β¨ this one is all about setting up the non-uniform erase map, and it is lowkey iconic.
πΈ NAME πΈ
spi_nor_init_non_uniform_erase_map β initialize the non-uniform erase map.
π¦ SYNOPSIS π¦
int spi_nor_init_non_uniform_erase_map (struct spi_nor *nor , const u32
*smpt );
π ARGUMENTS π
norβ pointer to a 'struct spi_nor' π this is the spi_nor struct bestie, she is the main character.smptβ pointer to the sector map parameter table πΊοΈ literally the map table in question.
π RETURN π
Vibe check: 0 on success, -errno otherwise. No cap β success gives you 0, and anything else is the -errno situation π.
π₯ SEE ALSO π₯
The Kernel file is ./drivers/mtd/spi-nor/sfdp.c, and the whole bestie squad is right here:
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_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_check_sfdp_signature(9)spi_nor_parse_sfdp(9)
mwah π signed off from the source/version spot ./drivers/mtd/spi-nor, dated October 2026, and this is still the spi_nor_init...rm_erase_map(9) page β 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