sched_group_asym(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sched_group_asym(9) ✨

okay so this is a page from the Kernel API Manual, bestie β€” it's sched_group_asym, and it's literally the little function that decides whether a CPU is fancy enough to do asym_packing balancing. sit down, hydrate, let's get into it 🫢


πŸ’– NAME πŸ’–

sched_group_asym β€” check if the destination CPU can do asym_packing balance ✨


πŸŽ€ SYNOPSIS πŸŽ€

bool sched_group_asym (struct lb_env *env , struct sg_lb_stats *sgs ,
struct sched_group *group );

like, it takes three things and gives you back a bool. that's the whole vibe πŸ’…


🌸 ARGUMENTS 🌸

  • env β€” the load balancing environment, aka the whole situation she's operating in πŸŒ€
  • sgs β€” load-balancing statistics of the candidate busiest group (receipts! numbers! data!) πŸ“Š
  • group β€” the candidate busiest group, the one we're side-eyeing πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: env::dst_cpu can do asym_packing if it has higher priority than the preferred CPU of group πŸ†

that's it, that's the whole check. no cap. she literally just looks at who's got the higher priority and goes from there ✨


🌈 RETURN 🌈

  • true β€” if env::dst_cpu can do with asym_packing load balance πŸŽ‰ slay
  • False β€” otherwise πŸ™ˆ (yes, the manpage capitalises it like that, and honestly? iconic)

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./kernel/sched/fair.c β€” and like, a whole friend group of functions that hang out together:

fr fr go read those too, they're all in the same friend group and the lore is deep 🧚

and that's the page!! mwah πŸ’‹ this one came out of ./kernel/sched, dated October 2026 β€” so yeah, she's from the future, main character energy only β­πŸ’œ

πŸ“¦ where this page comes from