snd_pcm_stream_linked(9)
π§ snd_pcm_stream_linked(9) β the Kernel API Manual, bestie edition π§
okay so picture this: it's a Kernel API Manual page, right, and today's main character is snd_pcm_stream_linked. yes we're in kernel land. yes there will be locking. no you cannot skip it. π
β¨ NAME β¨
snd_pcm_stream_linked β check whether the substream is linked with others
like, is this substream in a situationship with other substreams or is it single and ready to mingle? this function tells you. π
πΈ SYNOPSIS πΈ
int snd_pcm_stream_linked (struct snd_pcm_substream *substream );
that's it. that's the whole vibe. one arg, one return, no drama. β¨
π ARGUMENTS π
substreamβ the substream to check π that's the one you're asking about. the subject of the vibe check.
π RETURN π
returns true if the given substream is being linked with others π«
(and by "returns true" we mean the int gives you a truthy answer β the page says true if it's linked, so if it comes back true: linked. periodt.)
π¦ SEE ALSO π¦
so many friends, so much lore. the kernel file lives at ./include/sound/pcm.h and honestly the whole group chat is here:
snd_pcm_stream_lock_irqsave(9)snd_pcm_stream_lock_irqsave_nested(9)snd_pcm_group_for_each_entry(9)snd_pcm_running(9)__snd_pcm_set_state(9)bytes_to_samples(9)bytes_to_frames(9)samples_to_bytes(9)frames_to_bytes(9)frame_aligned(9)snd_pcm_lib_buffer_bytes(9)snd_pcm_lib_period_bytes(9)snd_pcm_playback_avail(9)snd_pcm_capture_avail(9)snd_pcm_playback_hw_avail(9)snd_pcm_capture_hw_avail(9)snd_pcm_playback_ready(9)snd_pcm_capture_ready(9)snd_pcm_playback_data(9)snd_pcm_playback_empty(9)snd_pcm_capture_empty(9)snd_pcm_trigger_done(9)params_channels(9)params_rate(9)params_period_size(9)params_periods(9)params_buffer_size(9)params_buffer_bytes(9)snd_pcm_hw_constraint_single(9)snd_pcm_format_cpu_endian(9)snd_pcm_set_sync(9)snd_pcm_set_runtime_buffer(9)snd_pcm_gettime(9)snd_pcm_set_fixed_buffer(9)snd_pcm_set_fixed_buffer_all(9)snd_pcm_sgbuf_get_addr(9)snd_pcm_sgbuf_get_chunk_size(9)snd_pcm_limit_isa_dma_size(9)snd_pcm_direction_name(9)snd_pcm_stream_str(9)snd_pcm_chmap_substream(9)pcm_format_to_bits(9)pcm_for_each_format(9)
no cap, that's the entire crew. tap in. π«Ά
lowkey reminder: if you're poking at substreams, read the locking friends up top first βsnd_pcm_stream_lock_irqsaveandsnd_pcm_stream_lock_irqsave_nestedare right there for a reason. iykyk. π
and that's the page, bestie!! π source lives in ./include/sound, dated October 2026 β signed, sealed, delivered, and yes the footer is serving looks. bye mwah ππ§ββοΈ
π¦ 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