acpi_get_dma_attr(9)
β¨ acpi_get_dma_attr(9) β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual page for acpi_get_dma_attr(9) β yes it's a whole manual page for one tiny function, and honestly? iconic of it. π
πΈ NAME πΈ
acpi_get_dma_attr β check the supported DMA attr for the specified device.
like, it literally just peeks at a device and tells you which DMA attributes it can vibe with. no cap. β¨
π¦ SYNOPSIS π¦
enum dev_dma_attr acpi_get_dma_attr (struct acpi_device *adev );
that's the whole thing. one function, one argument, one return type. main character energy fr fr. π
π ARGUMENTS π
adevβ the pointer to the acpi device. that's it, that's the whole arg list. just hand it astruct acpi_device *and let it cook. π«Ά
π₯ DESCRIPTION π₯
so what does it actually do? it returns enum dev_dma_attr. that's the whole description, bestie β the manpage said it, i said it, we're all saying it. π
like yes, that's a little mysterious of it, but that's the documented behaviour and we respect the documentation in this house. the return value is an enum dev_dma_attr, periodt. π
ngl, if you came here hoping for a five-paragraph essay about DMA internals, this is not that page. the facts stay exactly as written: it returns enum dev_dma_attr. π
π SEE ALSO π
okay this is the part where it name-drops all its friends, and honestly the friend group is huge. π
- the kernel file
./drivers/acpi/scan.cβ that's where the source lives, iykyk acpi_scan_drop_device(9)acpi_fetch_acpi_dev(9)acpi_get_acpi_dev(9)acpi_dma_supported(9)acpi_dma_get_range(9)acpi_dma_configure_id(9)acpi_walk_dep_device_list(9)acpi_dev_clear_dependencies(9)acpi_dev_ready_for_enumeration(9)acpi_dev_get_next_consumer_dev(9)acpi_bus_scan(9)acpi_bus_trim(9)
go read those if you want the full lore. the way this function has connections. π
and that's the page!! short, sweet, and fully documented. 10/10 no notes. π§
mwah π β this little sign-off comes to you from ./drivers/acpi, dated October 2026, brought to you by the Kernel API Manual. stay slay, stay documented, and remember: enum dev_dma_attr. always. πβ¨
π¦ 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