scx_punt_task(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

bestie, this is the Kernel API Manual page for scx_punt_task β€” it hands a task to a failed sched without initialization πŸ’… the manual name is scx_punt_task(9), and yes, we're getting into it 🫢


🌸 SYNOPSIS 🌸

void scx_punt_task (struct scx_sched *to , struct task_struct *p );

πŸŽ€ ARGUMENTS πŸŽ€

  • to β€” the failed and bypassed sched taking custody of p 😭
  • p β€” the task to punt πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

Okay so picture this: you take p off its current sched and put it on to at SCX_TASK_NONE ✨ to is dying, and its teardown will re-home p properly β€” periodt.

You use this when to must take over p but failed to initialize it. Bypass keeps scheduling decisions away from to, but p can still trigger its task ops, which may confuse the BPF side πŸ™ˆ to is dying anyway, so yeah.

The exit paths skip NONE tasks (see __scx_disable_and_exit_task and switched_from_scx) β€” lowkey important, bestie ⭐

🌈 SEE ALSO 🌈

Kernel file: ./kernel/sched/ext/sub.c


source/version: ./kernel/sched/ext Β· date: October 2026 Β· page: scx_punt_task(9) β€” byeee, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from