bfq_stat_add(9)
π NAME π
okay bestie, welcome to the bfq_stat_add(9) page β yes, that's the Kernel API Manual energy, and we are about to make one tiny kernel function feel iconic. This one is literally bfq_stat_add β it adds a value to a bfq_stat. periodt. π«Ά
β¨ SYNOPSIS β¨
void bfq_stat_add (struct bfq_stat *stat , uint64_t val );
No cap, that's the whole signature β keep it exactly like that. π
π ARGUMENTS π
statβ the targetbfq_stat, aka the counter bestie we're adding to. π―valβ the value to add. that's it, that's the number. β¨
πΈ DESCRIPTION πΈ
So basically: add val to stat. Simple, cute, to the point. π
β οΈ important caveat, bestie: the caller must ensure that IRQ on the same CPU don't re-enter this function for the same counter. like, same CPU + same counter = do not let those IRQ re-enter, fr fr. π
π₯ SEE ALSO π₯
The kernel file is ./block/bfq-cgroup.c β iconic source location, slay. π
All the linked besties, in order:
bfq_stat_read(9)bfq_stat_reset(9)bfq_stat_add_aux(9)blkg_prfill_stat(9)bfq_bfqq_move(9)__bfq_bic_change_cgroup(9)bfq_flush_idle_tree(9)bfq_reparent_leaf_entity(9)bfq_reparent_active_queues(9)bfq_pd_offline(9)
mwah π β source/version ./block, dated October 2026, and the page is bfq_stat_add(9). okay bye 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