nand_choose_..._sdr_timings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 nand_choose_best_sdr_timings β€” NAME πŸ’…

Okay bestie, so this is a page from the Kernel API Manual (that's the manual name, folding it in right here ✨) and it's all about nand_choose_best_sdr_timings β€” the function that picks up the best SDR timings that both the NAND controller and the NAND chip support. Like, both sides gotta agree, no cap. 🀝


✨ SYNOPSIS ✨

int nand_choose_best_sdr_timings (struct nand_chip *chip , struct
       nand_interface_config *iface , struct nand_sdr_timings *spec_timings );

Three args, one int coming back at you. Iconic signature fr.


πŸŽ€ ARGUMENTS πŸŽ€

  • chip β€” the NAND chip itself. Main character energy 🫢
  • iface β€” the interface configuration. Heads up: this one can eventually be updated, so it's not just a read-only lil passenger πŸ‘€
  • spec_timings β€” specific timings, used when they're not fitting the ONFI specification. Your custom-fit situation πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe check: if specific timings are provided, use them. That's it, that's the branch, slay.

Otherwise β€” and only otherwise β€” it goes and retrieves the supported timing modes from ONFI information. Two paths, one function, we love to see it ✨

Ngl this is the whole lore of the function, so don't go expecting extra behavior that isn't written here. Periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file it lives in: ./drivers/mtd/nand/raw/nand_base.c πŸ—‚οΈ

And the whole friend group, because NAND is a whole ecosystem bestie:


And that's the whole page, babe 🧚 Sources say this one lives under ./drivers/mtd/nand/raw, dated October 2026 β€” so like, future-coded of it honestly. Byeee, go pick some timings πŸ’œ

πŸ“¦ where this page comes from