acpi_dma_con...ler_register(9)
π acpi_dma_controller_register(9) β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this is the page for acpi_dma_controller_register, and yes the title gets truncated in the header (acpi_dma_con...ler_register(9)) because even man pages have a character limit, we don't make the rules π
πΈ NAME πΈ
acpi_dma_controller_register β register a DMA controller with the ACPI DMA helpers. that's it, that's the whole name, slay π
β¨ SYNOPSIS β¨
int acpi_dma_controller_register (struct device *dev , struct dma_chan
*(*acpi_dma_xlate) (struct acpi_dma_spec *, struct acpi_dma *) , void
*data );
like literally copy that exactly, don't @ me, it's a function pointer in there and she's iconic π¦
π«Ά ARGUMENTS π«Ά
devβ thestruct deviceof the DMA controller. it's giving "who am i, where do i live" energy, but for hardware π₯acpi_dma_xlateβ the translation function, and honestly the main character here π it converts a dma specifier into adma_chanstructure. it takes astruct acpi_dma_spec *and astruct acpi_dma *, no cap.dataβ pointer to controller-specific data, which the translation function gets to use. it's the little bag of snacks your xlate function brings along π
π DESCRIPTION π
so here's the tea: any memory that gets allocated should be freed with the appropriate acpi_dma_controller_free call. like, please don't just leave it there, that's not the vibe π
β RETURN β
0 on success, or the appropriate errno value on error. zero means we ate, anything else means something went sideways π
π SEE ALSO π
kernel file ./drivers/dma/acpi-dma.c β go read her, she's right there π§
and then the whole friend group:
acpi_dma_parse_resource_group(9)acpi_dma_parse_csrt(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_index(9)acpi_dma_request_slave_chan_by_name(9)acpi_dma_simple_xlate(9)
ngl, if you're registering a DMA controller, you're lowkey doing the most important work in the whole kernel. no cap. π«‘
and that's the page, bestie!! brought to you from ./drivers/dma, dated October 2026, filed under acpi_dma_con...ler_register(9) β mwah πβ¨ see you in the next man page, periodt π
π¦ 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