ktime_compare(9)
π ktime_compare(9) π
okay so bestie, welcome to the Kernel API Manual π«Ά this page is all about ktime_compare, and it's literally the vibe check for two ktime_t variables β it tells you if one is less than, greater than, or equal to the other. no cap β¨
πΈ NAME πΈ
ktime_compare β compares two ktime_t variables for less, greater or equal π
β¨ SYNOPSIS β¨
int ktime_compare (const ktime_t cmp1 , const ktime_t cmp2 );
π ARGUMENTS π
cmp1β comparable1 π¦cmp2β comparable2 π
π₯ RETURN π₯
so the return section lays it out like this, ellipsis and all:
... cmp1 < cmp2: return <0 cmp1 == cmp2: return 0 cmp1 > cmp2: return
>0
which means, in group-chat terms:
cmp1 < cmp2: return<0πcmp1 == cmp2: return0β¨cmp1 > cmp2: return>0π₯
π¦ SEE ALSO π¦
- Kernel file
./include/linux/ktime.h ktime_set(9)ktime_after(9)ktime_before(9)ktime_to_timespec64_cond(9)
mwah π this lil page comes from source/version ./include/linux, dated October 2026 β now go compare those ktimes and slay, bestie ππ
π¦ 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