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

From: Arjan van de Ven
Date: Fri Sep 16 2005 - 16:47:02 EST



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...

-
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/