cyclecounter_cyc2ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is cyclecounter_cyc2ns(9) from the Kernel API Manual, and it converts cycle counter cycles to nanoseconds β€” literally that's the whole vibe ✨


🌸 SYNOPSIS 🌸

u64 cyclecounter_cyc2ns (const struct cyclecounter *cc , u64 cycles ,
       u64 mask , u64 *frac );

πŸŽ€ ARGUMENTS πŸŽ€

  • cc β€” pointer to cycle counter. yep, the struct itself 🫢
  • cycles β€” cycles. that's the number going in, no cap πŸ’…
  • mask β€” bit mask for maintaining the 'frac' field πŸ”₯
  • frac β€” pointer to storage for the fractional nanoseconds. it's giving "hold my tiny leftover nanoseconds" 😭

πŸ”₯ RETURN πŸ”₯

cycle counter cycles converted to nanoseconds β€” that's the return, bestie, iconic behavior only πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/timecounter.h and its very slay little crew:


and that's the page, periodt πŸ’– source/version: ./include/linux Β· date: October 2026 Β· title: cyclecounter_cyc2ns(9) β€” bye bestie, go convert some cycles πŸŒˆπŸ’…

πŸ“¦ where this page comes from