kthreads_upd...housekeeping(9)
π kthreads_upd...housekeeping(9) π
okay so bestie, welcome to the Kernel API Manual, section 9 β the kthread corner of the kernel, and honestly? it's giving main character energy. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
kthreads_update_housekeeping β Update kthreads affinity on cpuset change π
π¦ SYNOPSIS π¦
int kthreads_update_housekeeping (void );
that's it. that's the whole call. no cap. π«Ά
π ARGUMENTS π
voidβ no arguments. not a single one. she takes nothing and she gives everything. π
πΈ DESCRIPTION πΈ
okay so here's the situation, and honestly it's kind of iconic π
When a cpuset changes a partition type to/from "isolated", or updates related cpumasks, this function propagates the housekeeping cpumask change to preferred kthreads affinity. like, it carries the news over to the kthreads so everyone's on the same page. communication queen. π₯
and then she reports back:
0β successful. slay. everything worked. β¨-ENOMEMβ a temporary mask couldn't be allocated. π memory said no.-EINVALβ internal error. π something went sideways inside, not your fault, but it happened.
fr fr, those three are the only possible outcomes β memorize them, your future self will thank you π§
π§ SEE ALSO π§
this is the part where I point you at her whole friend group, and bestie, it's a big friend group π
Kernel file ./kernel/kthread.c, plus:
kthread_should_stop(9)kthread_should_park(9)kthread_freezable_should_stop(9)kthread_func(9)kthread_data(9)kthread_probe_data(9)kthread_complete_and_exit(9)kthread_create_on_node(9)kthread_bind(9)kthread_create_on_cpu(9)kthread_unpark(9)kthread_park(9)kthread_stop(9)kthread_stop_put(9)kthread_affine_preferred(9)kthread_worker_fn(9)kthread_create_worker_on_node(9)kthread_create_worker_on_cpu(9)kthread_queue_work(9)kthread_delayed_work_timer_fn(9)kthread_queue_delayed_work(9)kthread_flush_work(9)kthread_mod_delayed_work(9)kthread_cancel_work_sync(9)kthread_cancel_delayed_work_sync(9)kthread_flush_worker(9)kthread_destroy_worker(9)kthread_use_mm(9)kthread_unuse_mm(9)kthread_associate_blkcg(9)kthread_blkcg(9)
like I said. huge friend group. iykyk π¦
okay that's the whole page bestie, go be brilliant out there π
sourced from ./kernel Β· dated October 2026 Β· filed under kthreads_upd...housekeeping(9) β mwah, love u, bye πβ¨
π¦ 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