TO_CYCLES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– TO_CYCLES(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the TO_CYCLES page from the Kernel API Manual β€” it's literally about deriving a duration in numbers of clock cycles. no cap. πŸ’…


✨ NAME ✨

TO_CYCLES β€” derives a duration in numbers of clock cycles. πŸŽ€

🌸 SYNOPSIS 🌸

TO_CYCLES (ps , period_ns );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ps β€” duration in pico-seconds ⏱️
  • period_ns β€” clock period in nano-seconds πŸ•°οΈ

πŸ’œ DESCRIPTION πŸ’œ

So it converts the duration in nano-seconds, then divides by the period and returns the number of clock periods. That's the whole vibe, fr fr. ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/mtd/nand/raw/marvell_nand.c, plus these iconic structs: struct marvell_hw_ecc_layout(9), struct marvell_nand_chip_sel(9), struct marvell_nand_chip(9), struct marvell_nfc_caps(9), struct marvell_nfc(9), struct marvell_nfc_timings(9), struct marvell_nfc_op(9). πŸ’…


source/version: ./drivers/mtd/nand/raw Β· date: October 2026 Β· manual page: TO_CYCLES(9) β€” bye bestie, go slay those clock cycles πŸ«ΆπŸ’–

πŸ“¦ where this page comes from