secs_to_jiffies(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ• secs_to_jiffies(9) β€” the Kernel API Manual bestie edition ✨

Okay so picture this: you're in the kernel, you've got a number of seconds in your hand, and everyone around you is speaking jiffies. Rude, honestly. That's where secs_to_jiffies comes in β€” she's the translator friend, and she's iconic for it. πŸ’… (Manual section 9, kernel API, iykyk.)


✨ SYNOPSIS ✨

secs_to_jiffies (_secs );

That's it. One argument, zero drama. πŸŽ€


🌸 ARGUMENTS 🌸

  • _secs β€” your time, in seconds. Just seconds. That's the whole vibe check. ⏱️

πŸ’– DESCRIPTION πŸ’–

So the conversion lowkey could not be simpler: it's a simple multiplication with HZ. That's the entire trick. Multiply by HZ, done, slay. πŸ”₯

Now here's the part that's actually kind of genius: secs_to_jiffies is defined as a macro rather than a static inline function β€” not to be quirky, but specifically so it can be used in static initializers. Yes bestie, that's the whole reason. Main character design choice fr fr. πŸ‘‘


πŸ¦‹ RETURN πŸ¦‹

The jiffies value. That's what you get back. 🫢


⭐ SEE ALSO ⭐

Grab a snack, this list is long and honestly she ate:

Like I said: a whole friend group. Go say hi. πŸ’œ


ngl the whole time-conversion family is worth a scroll β€” but you didn't hear it from me. πŸ™ˆ

And that's the page! πŸŽ€ This one lives over in ./include/linux and it's dated October 2026 β€” that's the source and the date, bestie, noted and cherished. Byeee, go convert some seconds. πŸ’–πŸŒˆπŸ§š

πŸ“¦ where this page comes from