sf_pdma_setup_chans(9)
π sf_pdma_setup_chans β like, the whole kernel-API-manual moment, bestie
okay so you found the sf_pdma_setup_chans(9) page in the Kernel API Manual and you're like "what does this even do" β don't worry, I got you π«Ά this is the init-everything function for the PDMA engine, and it's genuinely so straightforward you're gonna slay this.
β¨ NAME β¨
sf_pdma_setup_chans β init settings of each channel π
πΈ SYNOPSIS πΈ
void sf_pdma_setup_chans (struct sf_pdma *pdma );
π ARGUMENTS π
pdmaβ pointer of PDMA engine. Caller should checkNULLβ οΈ
π¦ DESCRIPTION π¦
So here's the vibe: this function initializes all data structure and register base. That's the whole job, no cap.
The one thing you absolutely have to do yourself β the function is literally not gonna do it for you β is make sure the pointer you pass in is non-NULL. Caller's responsibility, periodt. π
And the way that this is a one-time situation? Iconic. This function should be called only one time during the device probe. Not twice. Not "eh, let me just re-run it to be safe." Once. That's the main character energy this API expects. π
π CONTEXT π
Any context. fr fr, any context. π©·
β RETURN β
none β it gives you nothing back, and honestly? That's fine. π
π SEE ALSO π
- Kernel file
./drivers/dma/sf-pdma/sf-pdma.c sf_pdma_irq_init(9)
k that's the whole page, bestie β go forth and init responsibly π§ββοΈ
iykyk: ./drivers/dma/sf-pdma, October 2026 β mwah, that's the source/version and date, signed off with love ππ
π¦ 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