spi_nor_erase_multi_sectors(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

This is the Kernel API Manual page for spi_nor_erase_multi_sectors(9), bestie πŸ’–

spi_nor_erase_multi_sectors β€” perform a non-uniform erase


✨ SYNOPSIS ✨

int spi_nor_erase_multi_sectors (struct spi_nor *nor , u64 addr , u32
       len );

πŸŽ€ ARGUMENTS πŸŽ€

  • nor β€” pointer to a struct spi_nor 🫢
  • addr β€” offset in the serial flash memory ✨
  • len β€” number of bytes to erase 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the vibe: this function builds a list of best fitted erase commands and then executes that list once it validates that the erase can actually be performed. Literally that's the whole move πŸ’…


🌸 RETURN 🌸

0 on success, -errno otherwise. No cap 🫢


🌈 SEE ALSO 🌈

Kernel file: ./drivers/mtd/spi-nor/core.c πŸ‘‘

Related functions, all iconic, all listed:


πŸ’– that's the whole page, bestie! Signing off from the Kernel API Manual β€” source ./drivers/mtd/spi-nor, dated October 2026 πŸŽ€

πŸ“¦ where this page comes from