spi_nor_init_erase_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 spi_nor_init_erase_cmd(9) 🌸

okay bestie, welcome to the Kernel API Manual page for spi_nor_init_erase_cmd(9) β€” title and manual name are both folded in near the top, cute and accounted for. πŸ’…


πŸŽ€ NAME πŸŽ€

spi_nor_init_erase_cmd β€” initialize an erase command. that's the whole assignment, and it ate. ✨


✨ SYNOPSIS ✨

struct spi_nor_erase_command * spi_nor_init_erase_cmd (const struct
spi_nor_erase_region *region , const struct spi_nor_erase_type *erase );

🫢 ARGUMENTS 🫢

  • region β€” pointer to a structure that describes a SPI NOR erase region. literally handing over the region info. πŸ—ΊοΈ
  • erase β€” pointer to a structure that describes a SPI NOR erase type. the erase-type info, slay. πŸ’…

πŸ’« RETURN πŸ’«

the pointer to the allocated erase command, ERR_PTR(-errno) otherwise. so you either get the command pointer or the error-pointer situation; no cap. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/mtd/spi-nor/core.c and the full bestie lineup:


bye bestie πŸ’– β€” source/version: ./drivers/mtd/spi-nor Β· date: October 2026, from your fave Kernel API Manual. πŸŽ€

πŸ“¦ where this page comes from