STRUCT PADATA_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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