snd_soc_dap...or_each_path(9)
π snd_soc_dapm_widget_for_each_path π
okay so bestie, this is the <pink>snd_soc_dapm_widget_for_each_path</pink> page from the Kernel API Manual, and honestly? it's a little macro baddie that does exactly one thing and does it iconically. no cap. π
β¨ NAME β¨
<hotpink>snd_soc_dapm_widget_for_each_path</hotpink> β literally iterates over all the paths in the specified direction of a widget. that's it, that's the whole vibe. π¦
π«Ά SYNOPSIS π«Ά
snd_soc_dapm_widget_for_each_path (w , dir , p );
(and yes, the spacing is exactly like that, we don't editorialize π )
πΈ ARGUMENTS πΈ
wβ the widget. your main character. π the one whose paths we're about to loop through.dirβ whether to iterate over the paths where the specified widget is the incoming or outgoing widget. like, which way is the vibe flowing, yk? βpβ the path iterator variable. this is the lil variable that holds your place in the loop. your emotional support iterator, fr fr. π
π₯ SEE ALSO π₯
- Kernel file
./include/sound/soc-dapm.hβ go read it, iykyk π snd_soc_dapm_widget_for_each_path_safe(9)snd_soc_dapm_widget_for_each_sink_path(9)snd_soc_dapm_widget_for_each_source_path(9)
all of these are the friend group, they all slay in their own little way π«Άβ¨
ngl, quick vibe check: this is a macro, so the "arguments" are really just the tokens you hand it. it's giving "trust the process" β put the right things in and the paths appear. π
okay that's the whole page, mwah π this came out of <lavender>./include/sound</lavender>, dated October 2026, and it was documented in the Kernel API Manual. go forth and iterate, bestie β you're so valid. πππ¦
π¦ 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