ktime_before(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms