STRUCT STREAM_INFO(9)
π 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 fromresume_statusβ the current state you gotta restore on resume π΄resume_prevβ the prev state you gotta restore on resume too, no caplockβ the stream mutex, here to protect the state π«Ά don't skip heralloc_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
- 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