All of lore.kernel.org
 help / color / mirror / Atom feed
* uio_dmem_genirq.c and DMA mapping to user space ?
@ 2017-09-12 12:18 Joakim Tjernlund
  2017-09-12 12:37 ` gregkh
  0 siblings, 1 reply; 3+ messages in thread
From: Joakim Tjernlund @ 2017-09-12 12:18 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org

Hi

I am trying to use the uio_dmem_genirq.c driver for allocating DMA memory to a PCI device
using the uio_pci_generic.c driver.

I got as far as defining an UIO dev containing only Dynamic DMA memory and
now I am stuck.
I can see how DMA memory is allocated when opening the /dev/uio device but I cannot
figure out how to mmap this memory to User space as well so I can share this
memory with the PCI device and my user space driver.

What am I missing?

 Jocke

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-12 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-12 12:18 uio_dmem_genirq.c and DMA mapping to user space ? Joakim Tjernlund
2017-09-12 12:37 ` gregkh
2017-09-12 14:08   ` Joakim Tjernlund

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.