acpi_dma_req...han_by_index(9)
π acpi_dma_req...han_by_index(9) β like, the whole page, bestie
okay so real talk: this is a page straight outta the Kernel API Manual, and no, that truncated title isn't a typo on my end, that's literally how it's printed. We move. π«Ά
β¨ NAME β¨
acpi_dma_request_slave_chan_by_index β the one where you Get the DMA slave channel. that's the whole vibe. that's the assignment. π
πΈ SYNOPSIS πΈ
struct dma_chan * acpi_dma_request_slave_chan_by_index (struct device
*dev , size_t index );
like yes, she's a function that hands you back a struct dma_chan *. no cap.
π ARGUMENTS π
devβ thestruct deviceyou're pulling the DMA request from. this is your main character. everything routes through her. β¨indexβ the index of the FixedDMA descriptor fordev. think of it as which one you're asking for, bestie, not a vibe, a number. π’
π₯ RETURN π₯
on success? you get a pointer to the appropriate dma channel. iconic. on failure? an error pointer. which, yeah, means you gotta check it β no just vibing with the return value and hoping for the best, fr fr. π
π SEE ALSO π
the kernel file herself lives at ./drivers/dma/acpi-dma.c, and she rolls with a whole friend group:
acpi_dma_parse_resource_group(9)acpi_dma_parse_csrt(9)acpi_dma_controller_register(9)acpi_dma_controller_free(9)devm_acpi_dma_controller_register(9)acpi_dma_update_dma_spec(9)acpi_dma_parse_fixed_dma(9)acpi_dma_request_slave_chan_by_name(9)acpi_dma_simple_xlate(9)
go read all of them, iykyk ππ
ngl the truncated title acpi_dma_req...han_by_index(9) is doing serious "my name got cut off in the group chat" energy and honestly? relatable. just don't let it confuse you β the full name is at the top of NAME, periodt. β¨
and that's the page!! source is ./drivers/dma, dated October 2026, shipped under the Kernel API Manual banner β mwah, she ate, no crumbs. πππ
π¦ 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