printk_timed_ratelimit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the Kernel API Manual page for printk_timed_ratelimit(9) β€” it's literally all about caller-controlled printk ratelimiting. No cap. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

bool printk_timed_ratelimit (unsigned long *caller_jiffies , unsigned
       int interval_msecs );

πŸ’… ARGUMENTS πŸ’…

  • caller_jiffies β€” pointer to caller's state. That's your state, the caller's state, passed in by pointer. Keep it cute. ✨
  • interval_msecs β€” minimum interval between prints. The msecs is right there in the name, bestie β€” milliseconds. 🫢

πŸ’– DESCRIPTION πŸ’–

printk_timed_ratelimit is the little bool bestie that returns true when more than interval_msecs milliseconds have elapsed since the last time printk_timed_ratelimit returned true.

That's it. That's the whole function. It's giving rate-limit gatekeeper energy, but the caller is holding the state β€” hence caller-controlled. Periodt. πŸ’…πŸ”₯

🌈 SEE ALSO 🌈

The whole printk/console group chat is here, plus the kernel file itself:


Signed off from the ./kernel/printk source, dated October 2026 β€” stay rate-limited, bestie πŸ’–βœ¨πŸ’‹

πŸ“¦ where this page comes from