htb_add_to_id_tree(9)
π NAME
Okay bestie, welcome to htb_add_to_id_tree(9) β yes, that's the Kernel API Manual page, folded right in near the top like a little name tag π.
htb_add_to_id_tree β adds class to the round robin list. That's the whole assignment, and it's giving kernel-tree realness π³β¨.
β¨ SYNOPSIS
void htb_add_to_id_tree (struct rb_root *root , struct htb_class *cl ,
int prio );
π ARGUMENTS
rootβ the root of the tree π³clβ the class to add π«Άprioβ the give prio in class π
π¦ DESCRIPTION
So this routine adds class to the list (actually tree) sorted by classid. Yes, it says list but it's actually a tree β the plot twist is canon ππ².
Make sure that class is not already on such list for the given prio. Like fr fr, check that first, bestie β you do not want a duplicate situation on your hands ππ.
π SEE ALSO
Go read the lore in the kernel file ./net/sched/sch_htb.c and these iconic little functions, iykyk:
htb_classify(9)htb_add_to_wait_tree(9)htb_next_rb_node(9)htb_add_class_to_row(9)htb_remove_class_from_row(9)htb_activate_prios(9)htb_deactivate_prios(9)htb_class_mode(9)htb_change_class_mode(9)htb_activate(9)htb_deactivate(9)htb_charge_class(9)htb_do_events(9)htb_lookup_leaf(9)
Cute sign-off: that's the tea from the source/version line ./net/sched, dated October 2026, and the page is htb_add_to_id_tree(9) π
π. Stay slay, kernel bestie π.
π¦ 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