time_before_eq(9)
β¨ 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 asu64. she goes first. main character energy, honestly. πbβ the second comparable, also au64. 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 π
- Kernel file
./tools/sched_ext/include/scx/common.bpf.hβ that's where she lives, go say hi. β¨ RESIZABLE_ARRAY(9)MEMBER_VPTR(9)ARRAY_ELEM_PTR(9)__sink(9)time_delta(9)time_after(9)time_before(9)time_after_eq(9)time_in_range(9)time_in_range_open(9)
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
- 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