spi_nor_write_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_write_disable β€” Kernel API Manual, section 9 πŸŽ€

okay bestie, so this page lives in section 9 of the Kernel API Manual, and it's about the tiniest little function that does the most important little job: telling the flash chip "hey, stop accepting writes now, we're done here." slay.


✨ NAME ✨

spi_nor_write_disable β€” send the Write Disable instruction to the chip. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

int spi_nor_write_disable (struct spi_nor *nor );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” pointer to struct spi_nor. like, the actual chip object you're talking to. you hand it over and it handles the rest, no cap. 🫢

⭐ RETURN ⭐

0 on success, -errno otherwise. so: zero means we ate and left no crumbs, anything negative means something went sideways and it's handing you the error number. 😭

fr fr, check that return value. a negative -errno is the function telling you the write-disable did not land, and you don't wanna be out here assuming writes are locked out when they're not. πŸ”₯

🌈 SEE ALSO 🌈

bestie there is a whole friend group here, and I'm listing every single one of them because they all matter. iykyk. πŸ‘‘


and that's the whole page, bestie. source dir is ./drivers/mtd/spi-nor, dated October 2026, and honestly? iconic. go forth and disable those writes responsibly πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from