STRUCT STREAM_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct stream_info(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's all about struct stream_info, the lil' glow-up container that holds the stream information. it's giving "everything you need to know about one stream, in one struct" πŸŽ€


🌸 SYNOPSIS 🌸

struct stream_info {
    unsigned int            status;
    unsigned int            prev;
    unsigned int            resume_status;
    unsigned int            resume_prev;
    struct mutex            lock;
    struct snd_sst_alloc_mrfld alloc_param;
    void *pcm_substream;
    void (*period_elapsed)(void *pcm_substream);
    unsigned int            sfreq;
    u32 cumm_bytes;
    void *compr_cb_param;
    void (*compr_cb)(void *compr_cb_param);
    void *drain_cb_param;
    void (*drain_notify)(void *drain_cb_param);
    unsigned int            num_ch;
    unsigned int            pipe_id;
    unsigned int            task_id;
 };

like, look at her. seventeen fields. main character energy fr fr πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • status β€” the stream's current state, right here, right now πŸ’…
  • prev β€” the stream's prev state, aka where she just came from
  • resume_status β€” the current state you gotta restore on resume 😴
  • resume_prev β€” the prev state you gotta restore on resume too, no cap
  • lock β€” the stream mutex, here to protect the state 🫢 don't skip her
  • alloc_param β€” the parameters used for stream (re-)allocation πŸ”
  • pcm_substream β€” the PCM substream 🎡
  • period_elapsed β€” the PCM period elapsed callback ⏰
  • sfreq β€” the stream sampling freq 🎚️
  • cumm_bytes β€” the cummulative bytes decoded πŸ“Š
ngl the rest of the fields up in the SYNOPSIS (compr_cb_param, compr_cb, drain_cb_param, drain_notify, num_ch, pipe_id, task_id) aren't spelled out in the Members list on this page β€” so we're not gonna make anything up about them πŸ™ˆ the struct's right there if u need the exact declarations πŸ’–

⭐ SEE ALSO ⭐

Kernel file ./sound/soc/intel/atom/sst/sst.h and friends, go give 'em a read iykyk:

  • struct sst_block(9)
  • struct sst_fw_header(9)
  • struct fw_module_header(9)
  • struct fw_block_info(9)
  • struct intel_sst_drv(9)

and that's the whole vibe, bestie 🫢 this lil' page comes to you from the source ./sound/soc/intel/atom/sst, dated October 2026, and yes she's still rocking the struct stream_info(9) title πŸ’œ slay, go read some kernel source πŸ’€βœ¨

πŸ“¦ where this page comes from