STRUCT SND_COMPRESSED_BUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct snd_compressed_buffer β€” the compressed buffer, bestie. that's it, that's the whole vibe ✨

this is a page from the Kernel API Manual, and we're about to get into it 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct snd_compressed_buffer {
    __u32 fragment_size;
    __u32 fragments;
 };

look at her. two fields. small but iconic πŸ‘‘


🌸 Members 🌸

  • fragment_size β€” the size of a buffer fragment, in bytes πŸ’… literally just how big one lil piece is
  • fragments β€” the number of such fragments πŸ”₯ so like, how many of those pieces you got

put them together and you've got yourself a whole buffer situation, no cap 🧚


πŸ¦‹ SEE ALSO πŸ¦‹

okay so this struct does NOT exist in a vacuum, she runs with a whole friend group 😭 all of these live in the kernel file ./include/uapi/sound/compress_offload.h:

  • struct snd_compr_params(9)
  • struct snd_compr_tstamp(9)
  • struct snd_compr_tstamp64(9)
  • struct snd_compr_avail(9)
  • struct snd_compr_avail64(9)
  • struct snd_compr_caps(9)
  • struct snd_compr_codec_caps(9)
  • enum sndrv_compress_encoder(9)
  • struct snd_compr_metadata(9)
  • struct snd_compr_task(9)
  • enum snd_compr_state(9)
  • struct snd_compr_task_status(9)

go read them, iykyk πŸ“šπŸ’œ


ngl bestie, if you're here it's because you're messing with compressed audio offload in the kernel, and honestly? main character energy 🌈

and that's the whole page, periodt πŸ’… this came to you from the kernel source file ./include/uapi/sound, dated October 2026 β€” stan the kernel docs, they ate πŸ“πŸ‘‘

πŸ“¦ where this page comes from