Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1730841 > unrolled thread

Re: uio_dmem_genirq.c and DMA mapping to user space ?

Started by"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
First post2017-09-12 14:40 +0200
Last post2017-09-12 14:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: uio_dmem_genirq.c and DMA mapping to user space ? "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org> - 2017-09-12 14:40 +0200

#1730841 — Re: uio_dmem_genirq.c and DMA mapping to user space ?

From"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Date2017-09-12 14:40 +0200
SubjectRe: uio_dmem_genirq.c and DMA mapping to user space ?
Message-ID<uoSDU-1dW-17@gated-at.bofh.it>
On Tue, Sep 12, 2017 at 12:18:27PM +0000, Joakim Tjernlund wrote:
> 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?

Why can't you call mmap() on the fd you created when you opened
/dev/uio?  What happens when you do that?

thanks,

greg k-h

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web