STRUCT PADATA_PRIV(9)
π struct padata_priv(9) π
okay bestie, welcome to the Kernel API Manual β yes we're reading kernel docs for fun now, this is who we are, and honestly? iconic behaviour. today's main character is struct padata_priv, which literally represents one job. one. single. job. she's booked and busy but only for one thing at a time π
β¨ NAME β¨
struct padata_priv β Represents one job πΌ
πΈ SYNOPSIS πΈ
struct padata_priv {
struct list_head list;
struct parallel_data *pd;
int cb_cpu;
unsigned int seq_nr;
int info;
void (*parallel)(struct padata_priv *padata);
void (*serial)(struct padata_priv *padata);
};
no cap, look at her. seven fields. every single one matters. let's get into it π«Ά
π¦ Members π¦
listβ the list entry, so she can attach to the padata lists. it's giving "add me to the group chat" energy πpdβ pointer to the internal control structure. the backstage manager, iykyk β¨cb_cpuβ callback cpu for serializatioon. (yes, "serializatioon", that's how it's written here β typo era, we respect it π«‘) this is the cpu that handles the callback.seq_nrβ sequence number of the parallelized data object. keeping things in order, periodt π’infoβ used to pass information from the parallel to the serial function. she's the messenger π§parallelβ parallel execution function. the go-go-go one π₯serialβ serial complete function. the calm, collected finisher π
π SEE ALSO π
- Kernel file
./include/linux/padata.h 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)struct padata_instance(9)
the whole friend group π go read them too, they're all slay in their own way π
and that's the page, bestie! π source/version ./include/linux, dated October 2026, and she's filed under struct padata_priv(9) β mwah, no notes π
π
π¦ 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