blk_stat_activate_nsecs(9)
β¨ blk_stat_activate_nsecs(9) β¨
okay so bestie, welcome to the Kernel API Manual π β you're reading blk_stat_activate_nsecs(9), and honestly? she's a little icon. tiny function, big job. let's get into it π
πΈ NAME πΈ
blk_stat_activate_nsecs β gather block statistics during a time window in nanoseconds. literally that's it, that's her whole thing π
π¦ SYNOPSIS π¦
void blk_stat_activate_nsecs (struct blk_stat_callback *cb , u64 nsecs );
like, copy it exactly, no cap β¨
π ARGUMENTS π
cbβ the callback. yes, that callback. yourstruct blk_stat_callbackbestie π«Άnsecsβ number of nanoseconds to gather statistics for. nanoseconds!! she said precision π nicely typed as au64too.
π DESCRIPTION π
the timer callback will be called when the window expires. periodt. πβ¨
like β you set up a window of nsecs nanoseconds, and when that window runs out, the timer callback fires. that's the whole vibe check. lowkey elegant, highkey essential, iykyk π
π SEE ALSO π
- kernel file
./block/blk-stat.handstruct blk_stat_callback(9)πΈ blk_stat_alloc_callback(9)blk_stat_add_callback(9)blk_stat_remove_callback(9)blk_stat_free_callback(9)blk_stat_is_active(9)blk_stat_activate_msecs(9)β her sister function that counts in *milli*seconds π
the whole callback girlie friend group fr fr, go read them all π
ngl this page is short but she ate. use the right units or suffer π
and that's the page!! π§ sourced from ./block, dated October 2026 β mwah, see u in the group chat bestie π
ππ
π¦ 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