spi_nor_init...rm_erase_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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