time_before_eq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ time_before_eq(9) ✨

okay so bestie, welcome to the kernel API manual, section 9, and today's main character is time_before_eq πŸ’… she's from ./tools/sched_ext/include/scx and she's literally just here to answer one question: is time a before, or the same as, time b? that's it. that's the whole vibe check. πŸŽ€


🌸 NAME 🌸

time_before_eq β€” returns true if the time a is before or the same as time b. no cap, that's the entire job. πŸ¦‹


✨ SYNOPSIS ✨

bool time_before_eq (u64 a , u64 b );

like yes, that's the whole signature, she's lowkey minimal and we respect it. πŸ’œ


🫢 ARGUMENTS 🫢

  • a β€” the first comparable, typed as u64. she goes first. main character energy, honestly. πŸ‘‘
  • b β€” the second comparable, also a u64. she's the one a gets compared against. πŸ“

πŸ”₯ RETURN πŸ”₯

true is time a is before or the same as time b, otherwise false. (yes, the manpage literally says "true is time a..." and honestly? iconic typo, we're keeping it fr fr. 😭) so like β€” if a comes before b, or they're exactly equal, you get true. anything else and it's false, periodt. πŸ’…

ngl, the "or the same as" part is doing a LOT of heavy lifting here β€” equal counts as before-ish. don't forget that. 🌟

🌈 SEE ALSO 🌈

all her besties, obviously. the whole time-comparison friend group is here and they're all slaying in their own way. 🧚 🫢


aaaand that's the page!! πŸ’– this one comes to you from the source ./tools/sched_ext/include/scx, dated October 2026, and it goes by time_before_eq(9) β€” like the title said. k bye, go compare some times responsibly! πŸŒΈβ­πŸ’œ

πŸ“¦ where this page comes from