ktime_before(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ktime_before β€” the "who came first?" check πŸ’–

Okay so bestie, welcome to ktime_before(9), a page from the Kernel API Manual, and honestly? It's giving short-and-iconic. ✨ This is the little helper that looks at two ktime_t values and tells you whether the first one is smaller than the other one. That's it. That's the whole vibe. πŸŽ€


✨ NAME ✨

ktime_before β€” compare if a ktime_t value is smaller than another one. No cap, that's literally the job. πŸ¦‹


🌸 SYNOPSIS 🌸

bool ktime_before (const ktime_t cmp1 , const ktime_t cmp2 );

πŸ’… ARGUMENTS πŸ’…

  • cmp1 β€” comparable1, aka the first thing you're comparing. Main character energy, obviously. πŸ‘‘
  • cmp2 β€” comparable2, aka the second thing, here to get compared against. 🫢

⭐ RETURN ⭐

true if cmp1 happened before cmp2. Periodt. πŸ’«


🌈 SEE ALSO 🌈

Pop over to the kernel file ./include/linux/ktime.h for the whole friend group, plus these besties:

iykyk 😌


And that's the whole page, bestie! 🧚 This little gem lives in ./include/linux, dated October 2026, and it's filed under ktime_before(9) β€” go forth and compare those timestamps. Slay. πŸ’–πŸ”₯

πŸ“¦ where this page comes from