__account_scheduler_latency(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __account_scheduler_latency β€” like, the whole vibe

okay so bestie, we're in the Kernel API Manual today and this is genuinely a little icon of a function. no cap. let's get into it 🫢


✨ NAME ✨

__account_scheduler_latency β€” record an occurred latency ⏱️


πŸŽ€ SYNOPSIS πŸŽ€

void __account_scheduler_latency (struct task_struct *tsk , int usecs ,
       int inter );

that's it. that's the whole signature. she's small but she's doing something πŸ’…


🌸 ARGUMENTS 🌸

  • tsk β€” the task_struct of the task that's hitting the latency. like, whose little vibe check are we recording here πŸ‘€
  • usecs β€” how long the latency lasted, in microseconds. yes, micro β€” she's precise πŸ’–
  • inter β€” 1 if the sleep was interruptible, 0 if it was uninterruptible. pick a lane bestie 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function is the main entry point for recording latency entries β€” the scheduler is the one calling it, so you know it's main character energy πŸ‘‘

and listen, she's got a few special cases because normal "non-latency" sleeps are not it:

  • interruptible sleep longer than 5 msec gets skipped β€” lowkey because that's usually just waiting for events via select and co. fake latency, we don't want her πŸ™ˆ
  • negative latencies β€” caused by time going backwards πŸ˜­πŸ’€ β€” are also explicitly skipped. we do not speak of those.

that's the whole deal. she records, she skips the noise, she slays ✨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./kernel/latencytop.c β€” go read her bestie's source, iykyk πŸ“–


πŸ’œ fr fr: this page comes from ./kernel, dated October 2026 β€” that's the source and the date, which is literally the whole footer. so yeah, shoutout to the kernel, shoutout to October 2026, and shoutout to you for reading all the way down here. periodt. πŸŽ€πŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from