kthreads_upd...housekeeping(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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