bfq_weight_to_ioprio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME β€” bfq_weight_to_ioprio(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for bfq_weight_to_ioprio(9). its whole job? calc an ioprio from a weight. that’s the assignment, and it ate πŸ’…βœ¨

✨ SYNOPSIS ✨

unsigned short bfq_weight_to_ioprio (int weight );

πŸ“ ARGUMENTS πŸ“

  • weight β€” the weight value to convert. literally the weight value to convert, no extra lore 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so here’s the vibe: to preserve as much as possible the old only-ioprio user interface, 0 is used as an escape ioprio value for weights that are (numerically) equal to or larger than IOPRIO_NR_LEVELS * BFQ_WEIGHT_CONVERSION_COEFF. like, it’s keeping the old UI alive as much as possible, and 0 is the escape-hatch value for those bigger weights πŸ’–

bestie, remember: 0 is being used as an escape ioprio value here β€” not just some random zero. 😭

🌈 SEE ALSO 🌈

Kernel file: ./block/bfq-wf2q.c


byeee πŸ’– source/version: ./block Β· date: October 2026 Β· page: bfq_weight_to_ioprio(9) from the Kernel API Manual. mwah πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from