spi_nor_set_erase_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay bestie, welcome to the spi_nor_set_erase_type(9) page from the Kernel API Manual β€” yes, that manual. We’re keeping every detail, no cap, but we’re making it cute. πŸ’…

πŸ’– NAME πŸ’–

spi_nor_set_erase_type β€” literally set a SPI NOR erase type. That’s the assignment, and it ate. ✨

✨ SYNOPSIS ✨

Here’s the signature, copied exactly because we do not mess with code, periodt:

void spi_nor_set_erase_type (struct spi_nor_erase_type *erase , u32 size
, u8 opcode );

It’s void, so there’s no return value sitting in the synopsis. Slay. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

Three arguments, three little besties:

  • erase β€” pointer to a structure that describes a SPI NOR erase type. It’s giving β€œhere’s the erase-type info” energy. 🫢
  • size β€” the size of the sector/block erased by the erase type. Numbers matter, bestie. πŸ”₯
  • opcode β€” the SPI command op code to erase the sector/block. The command-code moment. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

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

Related functions and pages, in the exact order the original gives them β€” no cap, the whole squad:


Signing off from ./drivers/mtd/spi-nor, timestamped October 2026, on the spi_nor_set_erase_type(9) page β€” bye bestie, go set that erase type. πŸ’–βœ¨

πŸ“¦ where this page comes from