Messages in this thread | | | Date | Sun, 21 Mar 2004 17:28:22 -0800 | From | William Lee Irwin III <> | Subject | Re: can device drivers return non-ram via vm_ops->nopage? |
| |
On Sun, Mar 21, 2004 at 07:29:59PM -0500, Jeff Garzik wrote: > No comment on struct dma_scatterlist, but the above is the most natural > API for audio drivers at least. > Audio drivers allocate buffers at ->probe() or open(2), and the only > entity that actually cares about the contents of the buffers are (a) the > hardware and (b) userland. via82cxxx_audio only uses > pci_alloc_consistent because there's not a more appropriate DMA > allocator for the use to which that memory is put. > Audio drivers only need to read/write the buffers inside the kernel when > implementing read(2) and write(2) via copy_{to,from}_user().
I based it on rmk's set of arguments to his functions; I'm hoping for feedback (or another API/implementation) from him and hopefully at least one other arch maintainer having problems in this area. I'm hoping to focus mostly on the driver sweep, and to devolve e.g. finer details of the design like the above arguments and/or structures to those with more detailed knowledge or direct experience (and the broader details came from elsewhere too).
-- wli - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |