nand_soft_waitrdy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is the nand_soft_waitrdy(9) page from the Kernel API Manual πŸ’– and it's lowkey iconic: we're polling a STATUS register until the RDY bit says β€œma'am, I'm ready.” ✨

πŸ’– NAME πŸ’–

nand_soft_waitrdy β€” Poll STATUS reg until RDY bit is set to 1 πŸŽ€

🌸 SYNOPSIS 🌸

int nand_soft_waitrdy (struct nand_chip *chip , unsigned long timeout_ms
);

πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the NAND chip structure, aka the main character of this whole situation πŸ‘‘
  • timeout_ms β€” Timeout in ms (milliseconds, bestie ⏳)

πŸ’… DESCRIPTION πŸ’…

okay so here's the vibe: this helper polls the STATUS register using ->exec_op until the RDY bit becomes 1 ✨. it's giving patient bestie energy, fr fr. If that does not happen whitin the specified timeout, -ETIMEDOUT is returned 😭.

This helper is intended to be used when the controller does not have access to the NAND R/B pin 🫢.

be aware, bestie: calling this helper from an ->exec_op implementation means ->exec_op must be re-entrant πŸ’€. like, no cap, that's a real caveat.

Return 0 if the NAND chip is ready, a negative error otherwise πŸ’œ.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/mtd/nand/raw/nand_base.c β€” and a whole friend group of functions:


mwah πŸ’‹ β€” this cutie lives in ./drivers/mtd/nand/raw, dated October 2026, and the footer still says nand_soft_waitrdy(9) ✨ periodt.

πŸ“¦ where this page comes from