htb_remove_class_from_row(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… htb_remove_class_from_row(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” yes, the Kernel API Manual, we're literally in the big leagues today. this page is about htb_remove_class_from_row, and no cap, the name kinda spoils it: we're removing a class from its row πŸŽ€


🌸 NAME 🌸

htb_remove_class_from_row β€” removes class from its row. that's it, that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

void htb_remove_class_from_row (struct htb_sched *q , struct htb_class
*cl , int mask );

like, look at that signature. so clean. so iconic. returns void, meaning it gives you nothing back and honestly? respect πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • q β€” the priority event queue. bestie's the whole scheduling situation, the main character of this function ngl 🫢
  • cl β€” the class to add 🌸 (yes, the label says "add" even though we're removing here β€” that's just what the original says, iykyk, don't come for me πŸ’€)
  • mask β€” the given priorities in class in bitmap. think of it as a little checklist of which priorities we're messing with ⭐

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea πŸ“: the class gets removed from the row at the priorities that are marked in mask.

and the cute lil guard clause? if mask == 0, it literally does nothing. nothing at all. zero. zip. it's giving "not me showing up to the function call just to sit there" πŸ™ˆ so if you're passing a zero mask, congrats, you've achieved absolutely nothing and the kernel respects your journey ✨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./net/sched/sch_htb.c πŸ‘‘ and the whole friend group:

πŸ’€ lowkey note: htb_add_class_to_row(9) is right there in the list and it's literally the opposite of this function. they're sisters. one puts the class in the row, one takes it out. balanced. as all things should be 🧚

and that's the page, bestie!! this one came from the source tree at ./net/sched and it's dated October 2026 β€” so go forth, remove those classes from those rows, and slay πŸ’…πŸŒˆπŸ’–

πŸ“¦ where this page comes from