STRUCT PADATA_INSTANCE(9)
π struct padata_instance(9) β like, the whole entire control structure, bestie
okay so welcome to the Kernel API Manual β¨ and buckle up, because this page is about struct padata_instance, and it is literally the overall control structure. that's it, that's the whole vibe. she's the main character of padata and everyone else is just living in her orbit πͺ
πΈ SYNOPSIS πΈ
here's the whole fit, no edits, no cap:
struct padata_instance {
struct hlist_node cpuhp_node;
struct workqueue_struct *parallel_wq;
struct workqueue_struct *serial_wq;
struct list_head pslist;
struct padata_cpumask cpumask;
cpumask_var_t validate_cpumask;
struct kobject kobj;
struct mutex lock;
u8 flags;
#define PADATA_INIT 1;
#define PADATA_RESET 2;
#define PADATA_INVALID 4;
};
she's detailed, she's structured, she has range π now let's meet the members one by one, like a little meet-the-cast post π
π¦ Members π¦
cpuhp_nodeβ the linkage for CPU hotplug callbacks. think of it as her little connection string so the hotplug girlies can find her πparallel_wqβ the workqueue used for parallel work. multitasking queen energy πserial_wqβ the workqueue used for serial work. one thing at a time, and she does it flawlessly π§pslistβ the list ofpadata_shellobjects attached to this instance. it's giving guest list, and everyone on it is invited ποΈcpumaskβ user supplied cpumasks for parallel and serial works. yes, both. she does both. icon behaviour πvalidate_cpumaskβ internal cpumask used to validate cpumask during hotplug. she's the background-check friend who makes sure everything checks out before it walks in the door πkobjβ the padata instance kernel object. her official little badge πͺͺlockβ the padata instance lock. keep it locked, keep it safe, no chaos allowed πflagsβ padata flags. the mood ring of the struct, lowkey π
and bestie, the flags come with their own little named defines:
#define PADATA_INIT 1;#define PADATA_RESET 2;#define PADATA_INVALID 4;
those are verbatim, so please don't retype them from memory, i'm begging π copy/paste is self care fr fr
β¨ SEE ALSO β¨
go read these next, i'm obsessed with how consistent this family is π«Ά
- Kernel file
./include/linux/padata.h struct padata_priv(9)struct padata_list(9)struct padata_serial_queue(9)struct padata_cpumask(9)struct parallel_data(9)struct padata_shell(9)struct padata_mt_job(9)
ngl, the whole crew lives in ./include/linux, and this page is filed under October 2026, so mark your calendar bestie β
okay that's the page!! you ate that, honestly π β¨ mwah ππ
π¦ 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