params_period_bytes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 params_period_bytes(9) β€” a Kernel API Manual moment 🌸

Okay bestie, welcome to section 9 of the Kernel API Manual, and today's main character is params_period_bytes β€” yes she has a whole page, and yes she deserves it πŸ’…

✨ NAME ✨

params_period_bytes β€” get the period size (in bytes) from the hw params

Like, that's literally her whole job. Period size. In bytes. From the hw params. Slay πŸŽ€

✨ SYNOPSIS ✨

unsigned int params_period_bytes (const struct snd_pcm_hw_params *p );

That's the whole signature, no cap. She takes one pointer, she gives you back an unsigned int 🫢

✨ ARGUMENTS ✨

  • p β€” the hw params πŸ’– just hand her the hw params and she'll do her thing.

✨ SEE ALSO ✨

The kernel file lives at ./include/sound/pcm_params.h and honestly the whole friend group is iconic:

Go say hi to all of them, iykyk 🌈


lowkey reminder: p is a const struct snd_pcm_hw_params *, so she's only reading, not touching. Respectful queen πŸ‘‘

And that's the vibe check, bestie β€” this page came to you from ./include/sound (that's the source/version, fr fr) and it's dated October 2026 ⭐ Signed off with all the love, mwah πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from