GENERAL INFORMATION ABOUT TIME_* INLINES(9)
General info...me_* inlines(9) β Kernel API Manual Edition π
okay so bestie, welcome to the Kernel API Manual β¨ this one is literally just a little PSA about the time_* inlines and why you should lowkey be using them. no cap, it's short but it's important π«Ά
π NAME π
General information about time_* inlines β the glow-up your timer code deserves π
πΈ SYNOPSIS πΈ
These inlines deal with timer wrapping correctly. You are strongly encouraged to use them, fr fr:
Because people otherwise forget
Because if the timer wrap changes in future you won't have to alter your driver code.
that's it. that's the whole vibe check. iconic, honestly π
β¨ DESCRIPTION β¨
So here's the tea β β the time_* inlines are out here handling timer wrapping correctly for you. Like, they're literally doing the work so you don't have to π and you are strongly encouraged to use them. Why? Two reasons, bestie:
- Because people otherwise forget β yeah, humans are gonna human π we forget stuff, it's giving main character energy, and these inlines just save you from yourself π
- Because if the timer wrap changes in future you won't have to alter your driver code β future-proofing! your driver stays cute and untouched while the underlying wrap logic can change under the hood. slay π₯
no cap, just use them. it's giving self-care for your kernel code π
π¦ SEE ALSO π¦
Kernel file ./include/linux/jiffies.h β plus a whole squad of related functions, all here for your reading pleasure πβ¨
get_jiffies_64(9)time_after(9)time_before(9)time_after_eq(9)time_before_eq(9)time_in_range(9)time_in_range_open(9)time_after64(9)time_before64(9)time_after_eq64(9)time_before_eq64(9)time_in_range64(9)time_is_before_jiffies(9)time_is_before_jiffies64(9)time_is_after_jiffies(9)time_is_after_jiffies64(9)time_is_before_eq_jiffies(9)time_is_before_eq_jiffies64(9)time_is_after_eq_jiffies(9)time_is_after_eq_jiffies64(9)jiffies_to_msecs(9)jiffies_to_usecs(9)jiffies_to_nsecs(9)msecs_to_jiffies(9)secs_to_jiffies(9)usecs_to_jiffies(9)
like, that's the whole friend group right there π go say hi π
okay bestie, that's the page! this lil masterpiece lives in ./include/linux and it's dated October 2026 β so like, save the date, screenshot it, whatever β you're officially in the know π bye bestie, go write some wrap-safe timer code! π¦πβ¨
π¦ 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