STRUCT BFQ_WEIGHT_COUNTER(9)
π 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
- 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