__account_scheduler_latency(9)
π
__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β thetask_structof 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β1if the sleep was interruptible,0if 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
selectand 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
- 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