onenand_wait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– onenand_wait(9) β€” the Kernel API Manual glow-up πŸ’–

okay so this is onenand_wait(9) straight out of the Kernel API Manual bestie, and it's literally the "wait for the vibe to finish" function. ✨


🌸 NAME 🌸

onenand_wait β€” [DEFAULT] wait until the command is done

πŸ¦‹ SYNOPSIS πŸ¦‹

int onenand_wait (struct mtd_info *mtd , int state );

πŸŽ€ ARGUMENTS πŸŽ€

  • mtd β€” the MTD device structure. that's your device babe, the whole thing πŸ’…
  • state β€” the state you pass in to select the max. timeout value. yes queen, it picks how long we're willing to wait 🫢

✨ DESCRIPTION ✨

so basically you're waiting for the command to be done. that's it, that's the function. and this applies to all OneNAND commands, no exceptions 🫑

as for how long the wait can drag on, according to general OneNAND specs: Read can take up to 30us, erase up to 2ms, and program up to 350us. like, tiny numbers but the drama is real 😭

ngl these are spec numbers, so don't come for me if your hardware has main character energy and takes longer πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/mtd/nand/onenand/onenand_base.c, plus literally the entire friend group:


and that's the whole page bestie, mwah πŸ’‹ this lil masterpiece lives in ./drivers/mtd/nand/onenand and it's dated October 2026 β€” yes, the future, she's ahead of her time β­πŸ’œ

πŸ“¦ where this page comes from