ktime_compare(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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: return 0 ✨
  • cmp1 > cmp2: return >0 πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹


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