spi_nor_init...rm_erase_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_init_uniform_erase_map β€” Kernel API Manual πŸ’…

okay bestie, welcome to the Kernel API Manual, this one's for spi_nor_init_uniform_erase_map(9) and it's genuinely so straightforward you're gonna eat it up. no cap, this is a little setup function that hands your SPI NOR flash a nice tidy uniform erase map, and honestly? iconic behaviour.


✨ NAME ✨

spi_nor_init_uniform_erase_map β€” Initialize uniform erase map πŸŽ€


🌸 SYNOPSIS 🌸

void spi_nor_init_uniform_erase_map (struct spi_nor_erase_map *map , u8
erase_mask , u64 flash_size );

like, look at it. void, so nothing comes back out πŸ’€. it just goes in and does the thing. respect.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the erase map of the SPI NOR πŸ—ΊοΈβœ¨ this is the struct you're initializing, the main character of the whole operation.
  • erase_mask β€” bitmask encoding erase types that can erase the entire flash memory πŸ”₯πŸ“ think of it as a little picker: which erase types are allowed to nuke the whole chip? the bits say it all.
  • flash_size β€” the spi nor flash memory size πŸ“πŸ’– yep, the size. of the flash. that's the vibe.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/mtd/spi-nor/core.c β€” the home base πŸ πŸ’… and here is the whole friend group, in order, no notes, all of them, fr fr:


and that's the whole page bestie, go forth and initialize your uniform erase map πŸ’–βœ¨

this lil masterpiece lives in ./drivers/mtd/spi-nor, dated October 2026 β€” mwah, xoxo, go touch some flash πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from