padata_do_parallel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… padata_do_parallel(9) β€” like, the padata parallelization function, bestie

okay so this one lives in the Kernel API Manual and it's genuinely one of my fave little kernel helpers, no cap. it's called padata_do_parallel, and yeah β€” it's the padata parallelization function. that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

int padata_do_parallel (struct padata_shell *ps , struct padata_priv
*padata , int *cb_cpu );

like, look at her. three args, one int coming back. main character energy fr fr πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ps β€” the padatashell. that's it, that's the whole description πŸ’€ she's a padatashell, bestie, we love a girl who knows what she is.
  • padata β€” the object to be parallelized. this is the thing you're sending off to do its little parallel moment 🌈
  • cb_cpu β€” a pointer to the CPU that the serialization callback function should run on. okay so this is the important one: if that CPU is not in the serial cpumask of pinst (i.e. cpumask.cbcpu), then this function selects a fallback CPU for you. and if it can't find one at all? she returns -EINVAL. so like, expect that possibility, okay? πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

the parallelization callback function will run with BHs off. that's the whole description. short, sweet, and you absolutely need to know it. πŸ‘‘


⭐ NOTE ⭐

every single object that gets parallelized by padata_do_parallel must be seen by padata_do_serial. like, that's not optional. don't leave her hanging, bestie. the pairing is the whole point 🫢

πŸ”₯ RETURN πŸ”₯

0 on success, or else a negative error code. that's it. slay. πŸ’…


🧚 SEE ALSO 🧚

go read the whole friend group, they all ate πŸ’œ


aaaand that's the page!! πŸ’– this was pulled from ./kernel, dated October 2026, and yeah β€” she's padata_do_parallel(9) through and through. mwah πŸŽ€βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from