scx_rehome_task(9)
β¨ NAME β¨
okay bestie, meet scx_rehome_task(9) from the Kernel API Manual β the function whose whole job is Move a task to a sched it has been initialized for. iconic, honestly. π
πΈ SYNOPSIS πΈ
void scx_rehome_task (struct scx_sched *to , struct task_struct *p );
π ARGUMENTS π
toβ the sched taking overp;p's init on it already complete.pβ the task to re-home.
π DESCRIPTION π
okay so check it: scx_rehome_task exits p from its current sched and switches it over to to. It overrides the state to SCX_TASK_READY to account for the already completed init β yes, the init is already done, that's the whole point. π
and the edge case? a task on a non-ext class β possible under an SCX_OPS_SWITCH_PARTIAL root β stays READY, and switching_to_scx enables it if it switches over. π¦
π¦ SEE ALSO π¦
the kernel file is ./kernel/sched/ext/sub.c, and here's the whole bestie list you gotta keep in the group chat:
scx_skip_subtree_pre(9)scx_next_descendant_pre(9)scx_rescue_charge(9)scx_rescue_end(9)scx_rescue_keep(9)scx_rescue_accrue(9)scx_rescue_admit(9)scx_rescue_try_admit(9)scx_rescue_check_overload(9)scx_rescue_timerfn(9)scx_resolve_local_dsq(9)queue_sync_ecaps(9)scx_process_sync_ecaps(9)scx_unbypass_replay_ecaps(9)scx_discard_stale_ecaps_syncs(9)scx_punt_task(9)scx_cgroup_claim_subtree(9)scx_cgroup_return_subtree(9)scx_cgroup_task_migrating(9)scx_cgroup_task_migrated(9)scx_cgroup_task_migrate_canceled(9)scx_bpf_sub_dispatch(9)scx_bpf_sub_grant(9)scx_bpf_sub_revoke(9)scx_bpf_sub_caps(9)scx_bpf_sub_kill_bstr(9)
that's the whole vibe, bestie β source/version is ./kernel/sched/ext, dated October 2026, and yes this is still scx_rehome_task(9). stay hydrated and keep those tasks re-homed, periodt. πβ¨ππ¦
π¦ 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