spi_nor_sele...niform_erase(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_select_uniform_erase β€” Kernel API Manual (section 9)

okay so bestie, gather round, because this one is a kernel function and it lives in the manual pages for section 9. We're talking spi_nor_select_uniform_erase(9) β€” say that five times fast, I dare you. 🫢


✨ NAME ✨

spi_nor_select_uniform_erase β€” select the optimum uniform erase type. that's it, that's the whole vibe: pick the best one. πŸ‘‘


🌸 SYNOPSIS 🌸

const struct spi_nor_erase_type * spi_nor_select_uniform_erase (struct
spi_nor_erase_map *map );

literally just one argument, no cap. Look at that const struct spi_nor_erase_type * return type β€” she's giving "pointer to something you must not touch" energy and honestly? iconic. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • map β€” the erase map of the SPI NOR. yes that's the whole description. it's the map, bestie, she contains multitudes (of erase types). πŸ—ΊοΈβœ¨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. Once the optimum uniform sector erase command is found, this function disables all the other ones. That's it. That's the job. She finds the winner of the erase-type pageant and then personally sends everyone else home. πŸ’€πŸ‘‹

no runner-ups, no participation trophies. one erase type to rule them all. periodt.


⭐ RETURN ⭐

  • pointer to erase type on success βœ…
  • NULL otherwise 😭

so like, always check her return value, bestie. don't be out here dereferencing NULL, that's not the look. πŸ™ˆ


🌈 SEE ALSO 🌈

Kernel file ./drivers/mtd/spi-nor/core.c, plus this whole friend group (all section 9, all here, all accounted for, I would never lose one of them):

ngl that's a long guest list but every single one of them got an invite, so don't come for me about it. πŸ’–

okay that's the whole tour, bestie!! this page ships from ./drivers/mtd/spi-nor and it's dated October 2026 β€” bookmark it, cite it, print it out and put it on your wall, whatever feels right. mwah!! πŸ§šπŸ’œπŸŽ€

πŸ“¦ where this page comes from