htb_activate(9)
π htb_activate β the manual page, but make it make sense π
okay so bestie, welcome to htb_activate(9) from the Kernel API Manual π β section 9, kernel-space only, no userland shenanigans here. this one's a lil function, she's small, but she's important, so let's get into it β¨
πΈ NAME πΈ
htb_activate β inserts leaf cl into the appropriate active feeds π¦
like⦠she takes a leaf class and puts her where she belongs. that's the whole gig. slay.
β¨ SYNOPSIS β¨
void htb_activate (struct htb_sched *q , struct htb_class *cl );
void return, two args, no cap. she doesn't hand anything back, she just does the thing π
π«Ά ARGUMENTS π«Ά
qβ the priority event queue π this is the scheduler context she's working insideclβ the target class π― the leaf she's about to activate
π₯ DESCRIPTION π₯
okay so here's the vibe: the routine learns the (new) priority of the leaf, and then activates the feed chain for that prio. it's giving "glow-up, but for a scheduler class" β¨
and here's the cute part β you can call it on an already active leaf safely π no double-activation disaster, no drama, she just handles it. very demure, very mindful.
oh and also? she adds the leaf into the droplist too π so yeah. two jobs. iconic.
π SEE ALSO π
all her friends live in the kernel file ./net/sched/sch_htb.c β go say hi π
htb_classify(9)htb_add_to_id_tree(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_deactivate(9)htb_charge_class(9)htb_do_events(9)htb_lookup_leaf(9)
π reminder bestie: this is kernel API, section 9. it's not for your lil shell script. respect the boundary π«Ά
and that's the page!! mwah π this lil rewrite comes to you from the source dir ./net/sched, dated October 2026 β stay hydrated, read your sch_htb.c, and remember: leaf classes deserve love too πΈπβ
π¦ 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