spi_nor_ready(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_ready(9) β€” from the Kernel API Manual, bestie 🫢

okay so real talk, this one is a tiny little function from the kernel API manual and it's genuinely so simple it's giving main-character minimalism. it's called spi_nor_ready(9) β€” a kernel API page, no cap β€” and it's basically the vibe check you run on your flash chip before you send it more commands. ✨


🌸 NAME 🌸

spi_nor_ready β€” you literally just ask the flash "hey are you ready for new commands?" and it answers. that's the whole thing. πŸ’–


✨ SYNOPSIS ✨

int spi_nor_ready (struct spi_nor *nor );

just one function, one argument, returns an int. short and iconic. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” a pointer to struct spi_nor. that's it. that's the whole argument list. it's the flash object you're checking on, and yes you have to actually pass it, no shortcuts. πŸ’…

πŸ”₯ RETURN πŸ”₯

here's the whole vibe check in three numbers, and you gotta know all three:

  • 1 if ready 😌 β€” go ahead and send commands, she's free
  • 0 if not ready 🫠 β€” she's busy, come back later
  • -errno on errors 😭 β€” negatives mean something went wrong, and the specific errno tells you what
bestie do NOT treat the 0 case as an error. 0 is a legit answer. only the negative values are errors, fr fr. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where the page goes absolutely feral with cross-references, and we're keeping every single one because they're all part of the lore. also heads up: the actual kernel file lives at ./drivers/mtd/spi-nor/core.c β€” that's where the good stuff is, iykyk. 🌈

like. sixty-two of them. she ate and left no crumbs. πŸ”₯


and that's the page!! mwah πŸ’‹ β€” brought to you by the source tree at ./drivers/mtd/spi-nor, dated October 2026, given to you by spi_nor_ready(9). go check on your flash, she misses you. πŸ§šπŸ’œ

πŸ“¦ where this page comes from