STRUCT BFQ_WEIGHT_COUNTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct bfq_weight_counter(9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: you're deep in the kernel docs, right, and you stumble on a struct whose whole entire job is counting. that's it. that's the gig. and honestly? iconic. this is struct bfq_weight_counter, and she's a little bookkeeper πŸŽ€


✨ NAME ✨

struct bfq_weight_counter β€” a counter of the number of all active queues with a given weight. fr fr that's the whole vibe: she keeps track of how many active queues are rocking each particular weight. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct bfq_weight_counter {
    unsigned int weight;
    unsigned int num_active;
    struct rb_node weights_node;
 };

like, look at her. three lil fields, one big purpose. so slay. ✨


🌸 Members 🌸

(the manpage just puts this heading here with a lil empty vibe underneath β€” the deets live in the synopsis above, so go peek there πŸ‘€)

still, for the group chat, here's what's in the struct:

  • unsigned int weight; β€” the weight this counter is keeping tabs on πŸ’œ
  • unsigned int num_active; β€” the number of active queues that have that weight. literally the whole point of the struct, main character energy πŸ‘‘
  • struct rb_node weights_node; β€” the red-black tree node that hooks this counter up to the weights tree 🌈

🫢 SEE ALSO 🫢

go touch grass in the kernel file ./block/bfq-iosched.h, and then go say hi to the whole friend group:

  • struct bfq_service_tree(9)
  • struct bfq_sched_data(9)
  • struct bfq_entity(9)
  • struct bfq_ttime(9)
  • struct bfq_queue(9)
  • struct bfq_io_cq(9)
  • struct bfq_data(9)
  • struct bfq_group(9)

it's giving family reunion 🧚


one more time for the people in the back: she counts. that is the entire personality. and we stan πŸ’…

and that's the tea, bestie β€” brought to you by ./block, dated October 2026, and filed under struct bfq_weight_counter(9) πŸ“ mwah πŸ’–βœ¨

πŸ“¦ where this page comes from