blk_stat_add_callback(9)
β¨ blk_stat_add_callback(9) β¨
okay bestie, weβre in the Kernel API Manual and this one is short but important π«Ά
πΈ NAME πΈ
blk_stat_add_callback β add a block statistics callback to be run on a request queue.
β¨ SYNOPSIS β¨
void blk_stat_add_callback (struct request_queue *q , struct blk_stat_callback *cb );
π ARGUMENTS π
qβ the request queue. thatβs the queue weβre working with πcbβ the callback. the little function guy getting added π¦
π DESCRIPTION π
okay so hereβs the one major vibe check: a single struct blk_stat_callback can only be added to a single struct request_queue. no cap. thatβs the whole note, and itβs lowkey the main character of this page π₯
π¦ SEE ALSO π¦
- Kernel file
./block/blk-stat.hstruct blk_stat_callback(9),blk_stat_alloc_callback(9),blk_stat_remove_callback(9),blk_stat_free_callback(9),blk_stat_is_active(9),blk_stat_activate_nsecs(9),blk_stat_activate_msecs(9)
mwah π and thatβs the page! source/version is ./block, dated October 2026 β iconic, 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