devm_acpi_d...ler_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ devm_acpi_dma_controller_register(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil' helper from ./drivers/dma and it's literally the resource-managed glow-up of acpi_dma_controller_register(). no cap, it's giving "register your DMA controller but make it self-cleaning" πŸ’…


πŸŽ€ NAME πŸŽ€

devm_acpi_dma_controller_register β€” the resource managed version of acpi_dma_controller_register(). she's the same girlie but with automatic cleanup energy ✨


🌸 SYNOPSIS 🌸

int devm_acpi_dma_controller_register (struct device *dev , struct
       dma_chan *(*acpi_dma_xlate) (struct acpi_dma_spec *, struct acpi_dma *)
       , void *data );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that's registering this DMA controller. it's the main character of this call, periodt πŸ‘‘
  • acpi_dma_xlate β€” the translation function. that's a function pointer, bestie, typed struct dma_chan *(*)(struct acpi_dma_spec *, struct acpi_dma *) β€” she takes an acpi_dma_spec * and an acpi_dma *, and hands you back a struct dma_chan * 🫢
  • data β€” a pointer to controller specific data. whatever extra lil' bits your controller needs, they live here πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so this is the managed acpi_dma_controller_register. the DMA controllers registered through this function are automatically freed on driver detach β€” like, you don't have to do the cleanup yourself, the devm machinery handles it for you and honestly? obsessed 😭✨

want more info? go peek at acpi_dma_controller_register β€” that's the unmanaged sibling, iykyk 🌈

ngl, the whole point here is that you get the auto-free behavior instead of remembering to unwind manually. it's giving main character energy with built-in accountability πŸ’…

⭐ RETURN ⭐

0 on success, or an appropriate errno value on error. that's it, that's the vibe check πŸ’€


πŸ“ SEE ALSO πŸ“

Kernel file ./drivers/dma/acpi-dma.c β€” that's the source, go read her:


and that's the whole page, bestie β€” no notes πŸ’œ

πŸ’– this cutie came from ./drivers/dma, dated October 2026, and she's filed under devm_acpi_d...ler_register(9) β€” slay, go forth and register responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from