Skip to content

Comment on USB for Software Developers: An introduction to writing userspace USB drivers

Comments

Dumb question.. do USB devices support DMA? Is it done through the host? Or does the USB device always push/pull data to host memory?

USB devices cannot directly address host memory like PCIe or FireWire, but the XHCI controller does DMA to/from host memory, and most USB device controllers have some kind of DMA between USB and the device's RAM.

All transfers are initiated by the host, including ones that look like they're client-first; there is no DMA, which would be a massive security pain.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.