STRUCT SND_COMPR_TASK_STATUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, we’re in the Kernel API Manual, section 9, and today’s main character is struct snd_compr_task_status(9) β€” the task status struct. it’s giving kernel-internals chic πŸ’…

πŸ’– NAME πŸ’–

struct snd_compr_task_status - task status. that’s the whole name, no cap. periodt. πŸŽ€

✨ SYNOPSIS ✨

here’s the exact struct, bestie β€” just read her shape:

       struct snd_compr_task_status {
           __u64 seqno;
           __u64 input_size;
           __u64 output_size;
           __u32 output_flags;
           __u8 state;
           __u8 reserved[15];
        };

πŸ‘‘ Members πŸ‘‘

okay so every field is lowkey important, and here’s the tea:

  • seqno β€” the sequence number, aka the task identifier. iykyk πŸŽ€
  • input_size β€” filled data in bytes, and it comes from user space. πŸ’–
  • output_size β€” filled data in bytes, and this one comes from the driver. πŸ¦‹
  • output_flags β€” reserved for future, all zeros, straight from the driver. do not come for her yet ✨
  • state β€” the actual task state, using the SND_COMPRESS_TASK_STATE_* constants. πŸ‘‘
  • reserved β€” reserved for future extension. she’s just holding space 🫢

🌈 SEE ALSO 🌈

go off, bestie β€” here are the kernel friends and references:

  • Kernel file: ./include/uapi/sound/compress_offload.h
  • struct snd_compressed_buffer(9)
  • 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)

okay that’s the whole vibe check πŸ’– this page’s source/version is ./include/uapi/sound, dated October 2026, and the footer’s lil title bit is struct snd_c..._task_status(9) β€” mwah, bye bestie! 🫢

πŸ“¦ where this page comes from