Re: mmap(2)ping of pci_alloc_consistent() allocated buffers on 2.4kernels question/help

From: Martin Drab
Date: Fri Sep 16 2005 - 16:50:28 EST




On Fri, 16 Sep 2005, Arjan van de Ven wrote:

>
> On Fri, Sep 16, 2005 at 11:24:08PM +0200, Martin Drab wrote:
> >
> > And would that help anyhow?
>
> yes it would
>
> > (obtained via the RT FIFO) that he wants to mmap, the ioctl mmaps it to
> > the app., app. uses the data, and then calls another ioctl to unmap the
> > buffer and release it for next filling.
>
> don't use ioctls for this; the driver can just provide an mmap method and
> you can map this pci alloc'd ram straight into the userspace app...

OK, will do. Thaks.

Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/