Messages in this thread | | | Date | Sun, 21 Mar 2004 17:34:01 -0500 | From | Jeff Garzik <> | Subject | Re: can device drivers return non-ram via vm_ops->nopage? |
| |
Russell King wrote: > What about the case where the buffer is scatter-gather in nature, > just like we're so fond of telling driver writers who want to grab > (eg) 1MB of contiguous kernel memory for video buffers and the like? > Do we really want to tell driver writers to walk over 1MB of pages, > page by page, inserting them into the processes page tables via > remap_area_pages()?
Tell driver writers to call a standard platform function with a {dma|mmio|pio|vmalloc} handle+size+len for {dma|mmio|pio|vmalloc} mmap setup, and {fault|nopage} handler. ;-) IMO they shouldn't have to care about the details.
Jeff
- 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/
| |