spi_nor_dest...ase_cmd_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_dest...ase_cmd_list(9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: you're deep in the ./drivers/mtd/spi-nor/core.c file, you've built yourself a whole list of erase commands, and now you gotta let it go. that's literally this function. it's the cleanup era. the "thank u, next" of the SPI NOR world πŸŽ€


✨ NAME ✨

spi_nor_destroy_erase_cmd_list β€” destroy erase command list πŸ—‘οΈπŸ’–

like, tear it down, free it, say bye. no cap.


🌸 SYNOPSIS 🌸

void spi_nor_destroy_erase_cmd_list(struct list_head *erase_list);

it returns void, so don't be waiting around for a status code, bestie β€” there isn't one 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • erase_list β€” the list of erase commands πŸ’« that's it. that's the one thing you hand over. it's a struct list_head *, and it's giving "here's the list, please dispose of it responsibly."

πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad, fr fr β€” and the kernel file they live in: ./drivers/mtd/spi-nor/core.c

bestie note: if you're looking for the one that builds the list, that's spi_nor_init_erase_cmd_list(9) β€” this page is strictly the demolition half of the relationship πŸ’€βœ¨

mwah, that's the page 🫢 this little slice of kernel lore lives in ./drivers/mtd/spi-nor, dated October 2026, and it's officially signed off as spi_nor_dest...ase_cmd_list(9) β€” stay hydrated, read your man pages, and remember: always destroy your erase cmd list πŸ’œπŸŒˆ

πŸ“¦ where this page comes from