find_ssi_node(9)
πΈ find_ssi_node(9) πΈ
okay so bestie, welcome to the find_ssi_node page from the Kernel API Manual β it's short, it's sweet, and it's doing one very specific little errand for you. let's get into it π
β¨ NAME β¨
find_ssi_node β returns the SSI node that points to its DMA channel node π
β SYNOPSIS β
struct device_node * find_ssi_node (struct device_node *dma_channel_np );
yeah that's the whole signature, she's not complicated π¦
π ARGUMENTS π
dma_channel_npβ okay so the manpage literally just says-- undescribed --here π like the docs said "not today." so, no cap, that's all the original gives us. i'm not gonna invent lore for you, i refuse π
π₯ DESCRIPTION π₯
so here's the vibe: this DMA driver wants to be independent, right? it's giving main character energy, trying to do its own thing without leaning on the other devices. but it still has to figure out some information about the SSI device it's working with β like, it can't fully ghost the situation π
and here's the annoying part: the device tree does not contain a pointer from the DMA channel node to the SSI node. the pointer goes the other way π the way that the arrows point backwards is genuinely so unserious.
so what do we do? we scan the device tree for SSI nodes until we find the one that points to the given DMA channel node. that's it. that's the whole plan π
the original is very honest about this one: it's ugly, but at least it's contained in this one function. so like β contained ugly is fine, bestie. we keep it in one place, we don't let it leak, we move on. iconic, honestly π«Ά
π SEE ALSO π
- Kernel file
./sound/soc/fsl/fsl_dma.cβ the whole little friend group lives here π§ fsl_dma_abort_stream(9)fsl_dma_update_pointers(9)fsl_dma_isr(9)fsl_dma_new(9)fsl_dma_open(9)fsl_dma_hw_params(9)fsl_dma_pointer(9)fsl_dma_hw_free(9)fsl_dma_close(9)
ngl the moral of the story is: sometimes the device tree gives you a backwards pointer and you just have to scan for it. it's ugly but it's contained. slay π
and that's the page, bestie! β¨ this one lives in ./sound/soc/fsl and the docs are dated October 2026 β so like, future-coded and still relevant π go read the fsl_dma* crew next, they're all right there. 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