frame_aligned(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… frame_aligned(9) β€” Kernel API Manual ✨

okay so real talk, bestie: this page lives in the Kernel API Manual and it's called frame_aligned(9), and it's honestly one of those tiny little helpers that you'd never notice but like... it's doing the most for you. 🫢


✨ NAME ✨

frame_aligned β€” check whether the byte size is aligned to frames 🎯

like, is your byte count a whole number of frames or is it giving "off by a crumb"? that's the whole vibe check. 🌸


🌈 SYNOPSIS 🌈

int frame_aligned (struct snd_pcm_runtime *runtime , ssize_t bytes );

that's the whole thing. one function, two args, no drama. periodt. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • runtime β€” the PCM runtime instance, aka the little universe this check belongs to. you gotta tell it which PCM we're talking about, iykyk. πŸ¦‹
  • bytes β€” the size in bytes that you want checked. ssize_t, so yes it's signed, and yes that's just how it is. πŸ’–

⭐ RETURN ⭐

it hands back true if it's aligned, or false if it is not aligned. no in-between, no "it depends", no main character ambiguity. 😭


πŸ’œ SEE ALSO πŸ’œ

okay bestie this list is LONG, but every single one of these is iconic in its own right and they all live together in the kernel file ./include/sound/pcm.h β€” the way that one header file is carrying the entire sound subsystem, honestly obsessed 🧚:

like, go read them. they're all your besties too now. πŸ”₯πŸ‘‘


and that's the page, bestie! no cap, no filler, just the alignment check. πŸ“

mwah πŸ’‹ β€” this lil page is served fresh from ./include/sound, October 2026 edition, and honestly? slay. βœ¨πŸ“…

πŸ“¦ where this page comes from