STRUCT PARALLEL_DATA(9)
π NAME π
okay so bestie, this page is from the Kernel API Manual, and it's all about struct parallel_data(9). She is the internal control structure that covers literally everything that depends on the cpumask in use. periodt. π«Ά
β¨ SYNOPSIS β¨
struct parallel_data {
struct padata_shell *ps;
struct padata_list __percpu *reorder_list;
struct padata_serial_queue __percpu *squeue;
refcount_t refcnt;
unsigned int seq_nr;
unsigned int processed;
int cpu;
struct padata_cpumask cpumask;
};
π§ Members π§
psβ thepadata_shellobject. iconic little pointer behavior πreorder_listβ percpu reorder lists. yes bestie, per-CPU lists, no cap π¦squeueβ percpu padata queues used forserialuzation. and yes,serialuzationis exactly how it's spelled here, iykyk πrefcntβ Number of objects holding a reference on thisparallel_data. refcount realness, periodt.seq_nrβ Sequence number of the parallelized data object. she's keeping the sequence cute and numbered β¨processedβ Number of already processed objects. literally counting what's done πcpuβ Next CPU to be processed. main character CPU energy πcpumaskβ The cpumasks in use for parallel and serial workers. the whole vibe check depends on this π
πΈ SEE ALSO πΈ
Kernel file ./include/linux/padata.h is serving the whole friend group:
struct padata_priv(9)struct padata_list(9)struct padata_serial_queue(9)struct padata_cpumask(9)struct padata_shell(9)struct padata_mt_job(9)struct padata_instance(9)
mwah π β source/path ./include/linux, date October 2026, and the star of the page is struct parallel_data(9). byeee bestie πβ¨
π¦ 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