params_period_bytes(9)
πΈ 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:pis aconst 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
- 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