bfq_stat_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 target bfq_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:


mwah πŸ’‹ β€” source/version ./block, dated October 2026, and the page is bfq_stat_add(9). okay bye bestie! πŸ¦‹

πŸ“¦ where this page comes from