update_sg_lb_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ update_sg_lb_stats(9) β€” the Kernel API Manual glow-up ✨

Okay so bestie, welcome to the update_sg_lb_stats(9) page from the Kernel API Manual β€” this is the one that updates a sched_group's stats for load balancing, and honestly? It's giving main character energy in the scheduler. πŸ’…


🌸 NAME 🌸

update_sg_lb_stats β€” literally here to update a sched_group's statistics for load balancing. That's the whole vibe. No cap. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void update_sg_lb_stats (struct lb_env *env , struct sd_lb_stats *sds ,
struct sched_group *group , struct sg_lb_stats *sgs , bool
*sg_overloaded );

It returns void, so like… don't expect anything back, she's a giver not a receiver. πŸ’–


πŸ’œ ARGUMENTS πŸ’œ

  • env β€” the load balancing environment. Your whole setup, your whole context, your whole situation. 🫢
  • sds β€” load-balancing data with statistics of the local group. Local group stats live here, iykyk. 🏠
  • group β€” the sched_group whose statistics are about to get updated. She's the icon getting her numbers refreshed. πŸ‘‘
  • sgs β€” variable to hold the statistics for this group. Literally the container for this group's whole statistical moment. πŸ“Š
  • sg_overloaded β€” a bool pointer, and it means exactly what it says: the sched_group is overloaded. Too much going on, highkey relatable. 😭

🌈 SEE ALSO 🌈

This is the friend group, the whole crew, all referenced from the kernel file ./kernel/sched/fair.c:


Bestie reminder: sg_overloaded is a bool *, so you're passing a pointer β€” don't forget to actually give her something to point at, or it's giving undefined behavior and we don't do that here. πŸ’€

And that's the page, periodt. This beauty lives under ./kernel/sched, dated October 2026, and she ate. πŸ’…βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from