htb_add_to_id_tree(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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